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
SAS Super FREQ

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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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