<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Graphics in Body of Email in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232843#M14612</link>
    <description>Hi&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;I'm Also facing same proble if u have code the please share to me &lt;BR /&gt; &lt;BR /&gt;trying to display graph on mail body(Daily basis)&lt;BR /&gt; &lt;BR /&gt;we need to create graph on daily and mail to user&lt;BR /&gt; &lt;BR /&gt;please advice</description>
    <pubDate>Tue, 03 Nov 2015 02:29:25 GMT</pubDate>
    <dc:creator>dipakgopale</dc:creator>
    <dc:date>2015-11-03T02:29:25Z</dc:date>
    <item>
      <title>Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59271#M7099</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
A few notes:&lt;BR /&gt;
&lt;BR /&gt;
1. I can successfully send tables in the body, but the problem comes up when I try to add a graphic output.&lt;BR /&gt;
&lt;BR /&gt;
2. The code I am using is below:&lt;BR /&gt;
&lt;BR /&gt;
FILENAME OUTPUT EMAIL                                       &lt;BR /&gt;
                SUBJECT = "&amp;amp;subject."&lt;BR /&gt;
                FROM = &amp;amp;fromEmail.&lt;BR /&gt;
                TO = &amp;amp;toEmail.&lt;BR /&gt;
                type='text/html'&lt;BR /&gt;
                CT ='text/html'&lt;BR /&gt;
		ATTACH='gplot.png'&lt;BR /&gt;
		;&lt;BR /&gt;
		goptions device=png;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
** Create ODS HTML;&lt;BR /&gt;
ods html&lt;BR /&gt;
  body=OUTPUT&lt;BR /&gt;
  device=PNG;&lt;BR /&gt;
** Print the report to the ODS destination;&lt;BR /&gt;
title 'Centigrade to Fahrenheit conversion table';&lt;BR /&gt;
proc gplot data=temperatures;&lt;BR /&gt;
plot centigrade*fahrenheit;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html close; &lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
So my question is:&lt;BR /&gt;
&lt;BR /&gt;
How do I get the graph to go along with email and show up in the body of the email?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
&lt;BR /&gt;
Steve</description>
      <pubDate>Wed, 05 Jan 2011 18:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59271#M7099</guid>
      <dc:creator>SteveFrensch</dc:creator>
      <dc:date>2011-01-05T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59272#M7100</link>
      <description>Generate your graph first, to a specified output file destination.  Then generate the EMAIL which also needs the accurate location of the generated image file with the ATTACH=  parameter (if not choosing to embed the image in the EMAIL body.  Your attachment must exist, before you can reference it in the FILENAME statement.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 05 Jan 2011 23:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59272#M7100</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-01-05T23:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59273#M7101</link>
      <description>Just a quick update to this problem, got most of it figured out in case anyone else is dealing with this.&lt;BR /&gt;
&lt;BR /&gt;
1. The problem stemmed from the mail coming from UNIX. Sending binary attachments (as in a gif) require additional encoding.&lt;BR /&gt;
&lt;BR /&gt;
2. The problem was solved by creating the html and accompanying gifs via ODS in SAS, and just leaving them on the server. Then using a UNIX script encode the graphics and generated the email headers.&lt;BR /&gt;
&lt;BR /&gt;
3. The UNIX script needs to encode the gifs using uuencode. &lt;BR /&gt;
&lt;BR /&gt;
i.e.: uuencode $att1 'gchart.gif' &amp;gt;UUENCODE_UOTPUT.tmp&lt;BR /&gt;
&lt;BR /&gt;
4.Use UNIX to generate a MIME wrapper around the HTML and UUNECODE_OUTPUT, something like:&lt;BR /&gt;
&lt;BR /&gt;
MIME-Version: 1.0&lt;BR /&gt;
Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"&lt;BR /&gt;
---q1w2e3r4t5&lt;BR /&gt;
Content-Type: text/html&lt;BR /&gt;
Content-Disposition: inline ;&lt;BR /&gt;
&lt;BR /&gt;
$HTML_OUTPUT_FROM_SAS&lt;BR /&gt;
&lt;BR /&gt;
---q1w2e3r4t5&lt;BR /&gt;
Content-Type: image/gif; name="gchart.gif"&lt;BR /&gt;
Content-Transfer-Encoding: uuencode&lt;BR /&gt;
'Content-Disposition: attachment; filename="gchart.gif"&lt;BR /&gt;
&lt;BR /&gt;
$UUENCODE_UOTPUT.tmp&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
With these MIME headers to tell outlook that you are sending an HTML and a gif the email comes through with active HTML embedded into the body of the email.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps</description>
      <pubDate>Wed, 12 Jan 2011 16:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59273#M7101</guid>
      <dc:creator>SteveFrensch</dc:creator>
      <dc:date>2011-01-12T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59274#M7102</link>
      <description>Hi Steve,&lt;BR /&gt;
I am hanging on this problem now.. Can you please share your code.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Many thanks in advance</description>
      <pubDate>Tue, 08 Mar 2011 18:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/59274#M7102</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-08T18:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232842#M14611</link>
      <description>&lt;P&gt;Hi Anand&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm Also facing same proble if u have code the please share to me&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;trying to display graph on mail body(Daily basis)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we need to create graph on daily and mail to user&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please advice&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 02:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232842#M14611</guid>
      <dc:creator>dipakgopale</dc:creator>
      <dc:date>2015-11-03T02:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232843#M14612</link>
      <description>Hi&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;I'm Also facing same proble if u have code the please share to me &lt;BR /&gt; &lt;BR /&gt;trying to display graph on mail body(Daily basis)&lt;BR /&gt; &lt;BR /&gt;we need to create graph on daily and mail to user&lt;BR /&gt; &lt;BR /&gt;please advice</description>
      <pubDate>Tue, 03 Nov 2015 02:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232843#M14612</guid>
      <dc:creator>dipakgopale</dc:creator>
      <dc:date>2015-11-03T02:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics in Body of Email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232844#M14613</link>
      <description>Hi&lt;BR /&gt; &lt;BR /&gt;I'm Also facing same proble if u have code the please share to me &lt;BR /&gt; &lt;BR /&gt;trying to display graph on mail body(Daily basis)&lt;BR /&gt; &lt;BR /&gt;we need to create graph on daily and mail to user&lt;BR /&gt; &lt;BR /&gt;please advice</description>
      <pubDate>Tue, 03 Nov 2015 02:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Graphics-in-Body-of-Email/m-p/232844#M14613</guid>
      <dc:creator>dipakgopale</dc:creator>
      <dc:date>2015-11-03T02:29:44Z</dc:date>
    </item>
  </channel>
</rss>

