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...
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.