LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2000, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 >TO="Emailuser" >subject="SAS Reports: Automated E-Mail" > >; > > data _null_; > file usrmail; > infile 'c:\email.htm'; > input ; > > put _infile_; > run; > > > >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:

http://ftp.sas.com/techsup/download/technote/ts605.html

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' ; data temperatures; do centigrade = -40 to 100 by 10; fahrenheit = centigrade*9/5+32; output; end; run; ods html body=outbox /* Mail it! */ rs=none; /* <<< THATs it */ title 'Centigrade to Fahrenheit conversion table'; proc print; id centigrade; var fahrenheit; run; ods html close;


Back to: Top of message | Previous page | Main SAS-L page