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...

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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