<?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 Send email with text in the body section from sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449081#M112979</link>
    <description>&lt;P&gt;How to from sas i can send email the generated report to recipient with report content in the body section.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 18:03:48 GMT</pubDate>
    <dc:creator>radha009</dc:creator>
    <dc:date>2018-03-27T18:03:48Z</dc:date>
    <item>
      <title>Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449081#M112979</link>
      <description>&lt;P&gt;How to from sas i can send email the generated report to recipient with report content in the body section.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 18:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449081#M112979</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-03-27T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449133#M113004</link>
      <description>&lt;P&gt;i got it to send the text in the body section. But email is sending fine. but the text looks as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&amp;gt; &amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;meta name="Generator" content="SAS Software Version 9.4, see &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt;"&amp;gt; &amp;lt;meta http-equiv="Content-type" content="text/html; charset=windows-1252"&amp;gt; &amp;lt;title&amp;gt;SAS Output&amp;lt;/title&amp;gt; &amp;lt;style type="text/css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--&lt;/P&gt;&lt;P&gt;.aftercaption&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: #E0E0E0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: Arial, Helvetica, sans-serif;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: medium;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-style: normal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-weight: bold;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding-top: 4pt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.batch&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449133#M113004</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-03-27T19:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449134#M113005</link>
      <description>&lt;P&gt;Check this code that I use to send a report with text in the email. Report will be in the body. I'm using a custom style since to make my email look good.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc template;
Define style Style.Custom;
parent=styles.Default;
style html
   "Common HTML text used in the default style" /
   'expandAll' = "&amp;lt;SPAN onClick=""if(msie4==1)expandAll()""&amp;gt;"
   'posthtml flyover line' = "&amp;lt;/SPAN&amp;gt;&amp;lt;HR size=3&amp;gt;"
   'prehtml flyover line' = "&amp;lt;SPAN&amp;gt;&amp;lt;HR size=3&amp;gt;"
   'prehtml flyover bullet' = %nrstr("&amp;lt;SPAN&amp;gt;&amp;lt;b&amp;gt;·&amp;lt;/b&amp;gt;")
   'posthtml flyover' = "&amp;lt;/SPAN&amp;gt;"
   'prehtml flyover' = "&amp;lt;SPAN&amp;gt;"
   'break' = "&amp;lt;br&amp;gt;"
   'Line' = "&amp;lt;HR size=3&amp;gt;"
   'PageBreakLine' ="";
end;
run;
FILENAME output EMAIL
	SUBJECT= "Test email"
	FROM="abc@abc.com" 
	TO=("123@abc.com")
 	CT= "text/html" /* Required for HTML output */ ;

ODS HTML File=output rs=none STYLE=Style.Custom ;

proc odstext;
   p "Hi, ";
   p "  ";
   p "  ";
   p "Add your text here";
   p "  ";
run;

proc print data=sashelp.class;
run;
proc odstext;
   p "  ";
   p "  ";
   p "  ";
   p "Thanks, ";
   p " Kiran  ";
   p "  ";
run;
ODS _ALL_ CLOSE;
Filename output clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449134#M113005</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-27T19:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449135#M113006</link>
      <description>&lt;P&gt;try CT in Filename&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;CT&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"text/html"&lt;/SPAN&gt; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:46:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/449135#M113006</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-27T19:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/522958#M142030</link>
      <description>&lt;P&gt;i used same proc template and tried stil getting the same &amp;lt;DocType...&amp;gt; format&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 20:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/522958#M142030</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2018-12-20T20:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Send email with text in the body section from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/522976#M142038</link>
      <description>&lt;P&gt;Try the ODS&amp;nbsp;MSOffice2K destination and see if that gives you better results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mailbox email subject="Test Class Inventory"
       from="Info@YourDomain.com"
     sender="Info@YourDomain.com"
         to=("Dave@YourDomain.com")
       type="text/html";

ods listing close;
ods MSOffice2K body=mailbox style=HTMLblue;

TITLE1 "Test Class Inventory";
FOOTNOTE1 "Generated by the SAS System on %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) at %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";
proc print data=sashelp.class;
run;

ods _all_ close;
ods listing;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 23:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Send-email-with-text-in-the-body-section-from-sas/m-p/522976#M142038</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2018-12-20T23:58:58Z</dc:date>
    </item>
  </channel>
</rss>

