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;
You must have missed this answer when you searched the communities:
Another way:
You must have missed this answer when you searched the communities:
Another way:
Adding the link to @DonH's page
http://hcsbi.blogspot.com/2013/01/the-getimage-macro-embedded-images.html
and attaching his useful Base64 macro as websites come and go...
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!
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.
Ready to level-up your skills? Choose your own adventure.