I have a job that generates an e.mail where the results are displayed in the body of the e.mail in HTML, and it worked fine in 9.2, but now in 9.3, the e.mail is rendered as the raw HTML text, and not as actual markup language. I upgraded to Windows 7 and SAS v9.3 at the same time, and can't determine what might have changed. My 9.2 mainframe e.mails still render correctly, and I use the same basic code:
FILENAME OUTBOX EMAIL...;
ODS HTML BODY=OUTBOX STYLE=SASWeb rs=NONE;
Any thoughts on why the e.mails are rendering differently in Outlook 2010 in 9.3 vs 9.2?
Thanks in advance,
kjk
You want to add the CONTENT_TYPE (CT) option to the filename statement:
filename foo email to="" from="" subject="" CONTENT_TYPE="text/html" ;
Thanks...I shouldn't have truncated my FILENAME statement so severely. I did have TYPE='text/html' specified, and still just end up with raw text.
you can use ct='text/html' instead of CONTENT_TYPE..
off-course both are same..
ct is short form of CONTENT_TYPE...
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.