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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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