I have a quick question that I was hoping you might be able to help me with, I am trying to embed a graphic output into the body of an email, but have been having some problems. I can send an email, but there is not picture, just one of those red 'x' missing picture icons. I am running a batch script on a UNIX machine.
A few notes:
1. I can successfully send tables in the body, but the problem comes up when I try to add a graphic output.
2. The code I am using is below:
FILENAME OUTPUT EMAIL
SUBJECT = "&subject."
FROM = &fromEmail.
TO = &toEmail.
type='text/html'
CT ='text/html'
ATTACH='gplot.png'
;
goptions device=png;
** Create ODS HTML;
ods html
body=OUTPUT
device=PNG;
** Print the report to the ODS destination;
title 'Centigrade to Fahrenheit conversion table';
proc gplot data=temperatures;
plot centigrade*fahrenheit;
run;
ods html close;
3:The email does get sent, but there is not picture, just one of those red 'x' missing picture icons. When I look at the html from the message, I can see that the html is trying to referece 'gplot.gif', but cant find it. gplot.gif is created properly on the server, but is never sent out.
So my question is:
How do I get the graph to go along with email and show up in the body of the email?
Thanks in advance,
Steve