BookmarkSubscribeRSS Feed
NCNyrk
Calcite | Level 5

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

3 REPLIES 3
TimB_SAS
SAS Employee

You want to add the CONTENT_TYPE (CT) option to the filename statement:

filename foo email to="" from="" subject="" CONTENT_TYPE="text/html" ;

NCNyrk
Calcite | Level 5

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.

kuridisanjeev
Quartz | Level 8

you can use ct='text/html' instead of CONTENT_TYPE..

off-course both are same..

ct is short form of CONTENT_TYPE...

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1081 views
  • 0 likes
  • 3 in conversation