|Date: ||Wed, 22 Nov 2000 11:14:14 -0500|
|Reply-To: ||Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>|
|Subject: ||Re: Can I Send HTML EMAIL From SAS|
On Wed, 22 Nov 2000 15:29:28 GMT, simon_pickles@MY-DEJA.COM wrote:
>When I send Email from SAS (on Windows NT with Outlook) using the email
>FILENAME device type it always sends as 'Plain Text'. How can I get it
>to send an HTML message. I have the Message Format (Tools,Options) set
>to HTML in Outlook on my PC and try the following code to send an HTML
>email that I previously received and saved (c:\email.htm). It still
>sends as Plain Text and what I see is the HTML source. Clearly I'm
>groping in the dark here so any help much appreciated.
>filename usrmail email
>subject="SAS Reports: Automated E-Mail"
> data _null_;
> file usrmail;
> infile 'c:\email.htm';
> input ;
> put _infile_;
>Sent via Deja.com http://www.deja.com/
>Before you buy.
if I understand it right, you can send HTMLs only as attachments. Have a
look at the following URL to see some explanations and examples:
The following is a extract of that document and describes the use of ODS
and sending the HTML output via e-mail:
filename outbox email to='susan@mvs' type='text/html'
subject='Temperature conversions' ;
do centigrade = -40 to 100 by 10;
fahrenheit = centigrade*9/5+32;
ods html body=outbox /* Mail it! */ rs=none; /* <<< THATs it
title 'Centigrade to Fahrenheit conversion table';
ods html close;