BookmarkSubscribeRSS Feed
mmea
Quartz | Level 8

Hi where can i put text to show in the mail in this code. I have tried somethings but doesnt work:

 

filename sendmail email to=("[email protected]")          
   from=("[email protected]") 
 
	attach=("F:\pic1.png" ct ='png')
	attach=("F:\pic2.png" ct ='png')
	attach=("F:\pic3.png" ct ='png')
    type='text/html' subject="test";

ods html body=sendmail;

ods html text = '<img src="pic1.png""></img>';

ods html text = '<img src="pic2.png""></img>';

ods html text = '<img src="pic3.png""></img>';

ods noproctitle;
ods noptitle;
title; 

ods html close;
ods listing; 

1 REPLY 1
SASJedi
Ammonite | Level 13

I think you would be better off using a DATA step for this. Check out the examples on the FILENAME EMAIL docs page. 

Check out my Jedi SAS Tricks for SAS Users

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 1 reply
  • 1161 views
  • 2 likes
  • 2 in conversation