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=("test@he.dk")          
   from=("test@he.dk") 
 
	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
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
  • 689 views
  • 2 likes
  • 2 in conversation