<?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: My plots want show in email in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713711#M27208</link>
    <description>&lt;P&gt;You only have the image links in the mail body, but the images themselves are nowhere.&lt;/P&gt;
&lt;P&gt;If you want the images to be visible in the mail, use the INLINED option within the ATTACH= option of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n0ig2krarrz6vtn1aw9zzvtez4qo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILENAME EMAIL&lt;/A&gt; statement.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jan 2021 18:19:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-01-24T18:19:55Z</dc:date>
    <item>
      <title>My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713704#M27204</link>
      <description>&lt;P&gt;Hi I have this code for an email which includes two sgplots and a proc report table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
ods listing;  

filename sendmail email bcc=("test@ki")  FROM=("test@ki") 
	subject="test &amp;amp;todaysDate." 
	CT="text/html"
	attach=("\\test_&amp;amp;todaysDate..pdf" ct ='pdf')
	attach=("\\test_&amp;amp;todaysDate..pdf" ct ='pdf');

ods html body=sendmail rs=none style=deliveries;

ods noproctitle;
ods noptitle;
title; 


ods html text = '&amp;lt;img src="Figur1_&amp;amp;todaysDate..png""&amp;gt;&amp;lt;/img&amp;gt;';

proc report data=metode_count missing style(column)= [background = white fontsize=2 font_weight = bold] style(header) = {background = white frame=void} ;
	    columns new1 metode,COUNT  ;
	    define new1 /'' group  style(column)= [background = white fontsize=2 font_weight = bold] style(header) = {background = white frame=void};
        define metode/'' across style(column)= [background = white fontsize=2] style(header) = {background = white frame=void} ;
		define count/'' analysis sum style(column)= [background = white fontsize=2] style(header) = {background = white frame=void} ;;
	run;

ods html text = '&amp;lt;img src="Figur2_&amp;amp;todaysDate..png""&amp;gt;&amp;lt;/img&amp;gt;';

ods html close;
ods listing; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But the images wont appear in the email,what am i doing worong here&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 17:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713704#M27204</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-24T17:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713711#M27208</link>
      <description>&lt;P&gt;You only have the image links in the mail body, but the images themselves are nowhere.&lt;/P&gt;
&lt;P&gt;If you want the images to be visible in the mail, use the INLINED option within the ATTACH= option of the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n0ig2krarrz6vtn1aw9zzvtez4qo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILENAME EMAIL&lt;/A&gt; statement.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713711#M27208</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-24T18:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713714#M27209</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;
ods listing;  

filename sendmail email bcc=("test@ki")  FROM=("test@ki") 
	subject="test &amp;amp;todaysDate." 
	CT="text/html"
	attach=("\\test_&amp;amp;todaysDate..pdf" ct ='pdf')
	attach=("\\test_&amp;amp;todaysDate..pdf" ct ='pdf');
attach=("\\Figure1_&amp;amp;todaysDate..png" ct ='png')
	attach=("\\Figure2_&amp;amp;todaysDate..png" ct ='png');

ods html body=sendmail rs=none style=deliveries;

ods noproctitle;
ods noptitle;
title; 


ods html text = '&amp;lt;img src="Figur1_&amp;amp;todaysDate..png""&amp;gt;&amp;lt;/img&amp;gt;';

proc report data=metode_count missing style(column)= [background = white fontsize=2 font_weight = bold] style(header) = {background = white frame=void} ;
	    columns new1 metode,COUNT  ;
	    define new1 /'' group  style(column)= [background = white fontsize=2 font_weight = bold] style(header) = {background = white frame=void};
        define metode/'' across style(column)= [background = white fontsize=2] style(header) = {background = white frame=void} ;
		define count/'' analysis sum style(column)= [background = white fontsize=2] style(header) = {background = white frame=void} ;;
	run;

ods html text = '&amp;lt;img src="Figur2_&amp;amp;todaysDate..png""&amp;gt;&amp;lt;/img&amp;gt;';

ods html close;
ods listing; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713714#M27209</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-24T18:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713717#M27210</link>
      <description>&lt;P&gt;A&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;PDF&lt;/STRONG&gt;&lt;/U&gt; file is&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/U&gt; of type&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;PNG.&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;And you did&amp;nbsp;&lt;STRONG&gt;NOT&amp;nbsp;&lt;/STRONG&gt;use the INLINED option. Please read the documentation I linked to (see Example 6).&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713717#M27210</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-24T18:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713719#M27211</link>
      <description>&lt;P&gt;My bad.. it was i typo, in my code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its still dosent work after I run the corrected code.&lt;/P&gt;
&lt;P&gt;I will try with the inlined&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713719#M27211</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-24T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713883#M27231</link>
      <description>&lt;P&gt;i tried this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I worked for miy PNG but not he PDF - how can I show the PDF in the body of my email:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options emailsys=smtp;

filename myemail email 
to="test@sdfi.dk" 
from="dsf@df.dk" 
attach=("F:Figur2_&amp;amp;todaysDate..png" INLINED="logo1")
attach=("F:test.pdf" INLINED="logo2")


subject="D."
content_type="text/html";
 


data _null_;
file myemail;
   put '&amp;lt;IMG src="cid:logo1" &amp;gt;';

  put '&amp;lt;IMG src="cid:logo2"&amp;gt;';
 
  
 run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jan 2021 12:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/713883#M27231</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-25T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: My plots want show in email</title>
      <link>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/714928#M27336</link>
      <description>&lt;P&gt;AFAIK, you can't make PDFs visible like a picture. I suggest you use ODS HTML to write your report to the email file reference to make it show in the mail body.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 09:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/My-plots-want-show-in-email/m-p/714928#M27336</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-28T09:51:55Z</dc:date>
    </item>
  </channel>
</rss>

