Does anybody know how to send email which has embeded image with some text in it. I am able to send mail with attachments. But the image which is an attachment not embeded in the body of the email. Can somebody help me.
We have a similar need, but our solution might not suit your needs because we could not figure out how to imbed the images in the email message itself. We instead put the images on a web server and then created an HTML document that contained references to these images. The email was then created using a email file with the type='text/html' option and the html was written to it.
filename SendMail email to=("my.customer@overthere.com")
from='joe.shmoe@anywherecom'
type='text/html'
subject="Here is my email";
data outfile;
length line $ 4000;
infile "c:\MyHTMLBaseEmal.html" lrecl=4000 TRUNCOVER;
input line $ 1 - 4000;
run;
data _null;
file SendMail;
set outfile;
put line;
run;
The user gets an email with the images shown inline, but they may need to click something autorizing their email client to download the images.
Message was edited by: Curtis Mack
The last reply shows a DATA step approach to "push" the HTML document only -- I don't see where there is any embedded image file being referenced, only the HTML tag file.
Please read my post, I said exactly that. The HTML being sent contains img tags with the "src" pointing to images we have on our web server. The images are not "imbeded" in the email, but they do apear inline in the email message.
For example like I did to get this image to show in this post:
alt="Widget showing MB sales." />
Message was edited by: Curtis Mack
Message was edited by: Curtis Mack
If anyone has figured out how to imbed the images in the email message from within SAS, I would love to know how. I spent some time on it, and I think it would require understaning how the reference an attachment from within a message, or the use of imbeded MIME encoding, or both. What I offered is a work-around that got the job done for us.
HI Mark,
According to my discussino with SAS Tech support its not possible with current releases of SAS. They are currently working on possibility of developing it. If this is possible then it will be in the next release of SAS.
When I sent email with image as a hyper link my mail shows a message saying you need to download the image and its prevented as part of privacy settings. CAn this be overrruled through program.
I mentioned that this was a problem with this method. I don't think there is a way around it because it is a security feature of the email client, and it would be a pointless feature if the sender could over-ride it.