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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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