<?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: Email , Embed image and text in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23958#M3989</link>
    <description>Did you use emailsys as SMTP ?</description>
    <pubDate>Thu, 10 Mar 2011 17:45:24 GMT</pubDate>
    <dc:creator>anandbillava</dc:creator>
    <dc:date>2011-03-10T17:45:24Z</dc:date>
    <item>
      <title>Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23954#M3985</link>
      <description>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.</description>
      <pubDate>Mon, 07 Mar 2011 21:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23954#M3985</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-07T21:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23955#M3986</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
     filename SendMail email to=("my.customer@overthere.com")&lt;BR /&gt;
                                         from='joe.shmoe@anywherecom'&lt;BR /&gt;
                                         type='text/html'&lt;BR /&gt;
                                         subject="Here is my email";&lt;BR /&gt;
&lt;BR /&gt;
     data outfile;&lt;BR /&gt;
     length line $ 4000;&lt;BR /&gt;
     infile "c:\MyHTMLBaseEmal.html" lrecl=4000 TRUNCOVER;&lt;BR /&gt;
     input line $ 1 - 4000;&lt;BR /&gt;
     run;&lt;BR /&gt;
     data _null;&lt;BR /&gt;
       file SendMail;&lt;BR /&gt;
     set outfile;&lt;BR /&gt;
     put line;&lt;BR /&gt;
     run;&lt;BR /&gt;
&lt;BR /&gt;
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</description>
      <pubDate>Thu, 10 Mar 2011 16:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23955#M3986</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23956#M3987</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 10 Mar 2011 16:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23956#M3987</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-03-10T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23957#M3988</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
For example like I did to get this image to show in this post:&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG width="171" height="200" src="http://gems.lgan.com/Help/Updates/Images/Feb0211image006.jpg" /&gt;&lt;BR /&gt;
                                alt="Widget showing MB sales." /&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Curtis Mack

Message was edited by: Curtis Mack</description>
      <pubDate>Thu, 10 Mar 2011 17:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23957#M3988</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T17:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23958#M3989</link>
      <description>Did you use emailsys as SMTP ?</description>
      <pubDate>Thu, 10 Mar 2011 17:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23958#M3989</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-10T17:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23959#M3990</link>
      <description>Yes, we have an SMTP passthrough server set up just for generating messages in code like this.</description>
      <pubDate>Thu, 10 Mar 2011 17:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23959#M3990</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23960#M3991</link>
      <description>We have the following options set when we open SAS:&lt;BR /&gt;
&lt;BR /&gt;
 -emailhost "smtp.nwcsr.com" -emailsys smtp&lt;BR /&gt;
&lt;BR /&gt;
Of course the url of the smtp server would depend on your environment.</description>
      <pubDate>Thu, 10 Mar 2011 17:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23960#M3991</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23961#M3992</link>
      <description>Thanks for taht. Yes if you dont specify SMTP option then the mail wont support html content type.</description>
      <pubDate>Thu, 10 Mar 2011 17:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23961#M3992</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-10T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23962#M3993</link>
      <description>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.</description>
      <pubDate>Thu, 10 Mar 2011 17:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23962#M3993</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T17:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23963#M3994</link>
      <description>HI Mark,&lt;BR /&gt;
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.</description>
      <pubDate>Thu, 10 Mar 2011 18:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23963#M3994</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-10T18:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23964#M3995</link>
      <description>Thanks, now I won't try to figure it out in my spare time (not that that would ever happen &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ).</description>
      <pubDate>Thu, 10 Mar 2011 18:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23964#M3995</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T18:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23965#M3996</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Ananda</description>
      <pubDate>Thu, 10 Mar 2011 21:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23965#M3996</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2011-03-10T21:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Email , Embed image and text</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23966#M3997</link>
      <description>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.</description>
      <pubDate>Thu, 10 Mar 2011 22:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-Embed-image-and-text/m-p/23966#M3997</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2011-03-10T22:17:58Z</dc:date>
    </item>
  </channel>
</rss>

