BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASdevAnneMarie
Barite | Level 11

Hello Experts,

I would like to insert the image in the body of my e-mail, like this:

 

Hello!

 

Bla bla bla

image.png

Bla bla bla

 

Is it possible with sas?

 

 

Thank you very much!

 

My code is:

	FILENAME outmail EMAIL
				SUBJECT=	"TEST MAIL"
				type='text/html'
				FROM= 		"APC@alk.onmicrosoft.com"
				TO=			('marie@address')
				CC=			('marie@address')
				ATTACH=("XXX\Files_20201020.xlsx"content_type="application/xlsx");
								

			data _null_;
				file outmail;

				if _N_=1 then
					do;
						PUT '<html>'"Bonjour,"'</html>';
						PUT '<html><br></html>';
						PUT '<html>'"Blablabla"'</html>';
						PUT '<html>'"Blablabla"'</html>';
						PUT '<html>'"Blablabla"'</html>';
						PUT '<html><br></html>';
						PUT '<html><br></html>';
						PUT '<html>'"Cordialement,"'</html>';
						PUT '<html><br></html>';
						PUT '<html><b>'"Blablabla"'</b></html>';
					end;
			run;

			filename outmail clear; 

 

 

1 ACCEPTED SOLUTION
3 REPLIES 3

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
  • 2172 views
  • 2 likes
  • 2 in conversation