<?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: procedure data send in body email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525314#M142933</link>
    <description>&lt;P&gt;Any help please- The html email sent is displaying in plain code. Do we have any other option to send the sas report to email?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 02:58:13 GMT</pubDate>
    <dc:creator>radha009</dc:creator>
    <dc:date>2019-01-08T02:58:13Z</dc:date>
    <item>
      <title>procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524278#M142551</link>
      <description>&lt;P&gt;Do we have to update any setting in the outlook. I can't send the data to the body of the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename mailtest email
      to = ("first.last@company.com")
      subject = "test"
      type="text/html";
   ods html body=mailtest style=default;
   proc print data = sashelp.class;
   run;
   ods html close;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;output in body email:&amp;nbsp;&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;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: #D3D3D3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: 1px solid #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-collapse: separate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 1px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: 'SAS Monospace', 'Courier New', Courier, monospace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: x-small;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-style: normal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-weight: normal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 7px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.beforecaption&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;</description>
      <pubDate>Thu, 03 Jan 2019 14:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524278#M142551</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2019-01-03T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524306#M142571</link>
      <description>&lt;P&gt;Hi Radha009&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works for me. The only difference seems to be the ODS destination.&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="Mysubject"
		from="sender@company.com"
		to=("sender@company.com")
		type="text/html";

	ods listing close;
	ods MSOffice2K body=mailbox style=HTMLblue;

	proc print data=sashelp.class;
	run;

	ods _all_ close;
	ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524306#M142571</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-01-03T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524309#M142573</link>
      <description>&lt;P&gt;Got below in the body email:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;html xmlns:v="urn:schemas-microsoft-com:vml"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&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: #FAFBFE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #112277;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: Arial, 'Albany AMT', Helvetica, Helv;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: x-small;&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;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: #FAFBFE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: 1px solid #C1C1C1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-collapse: separate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 1px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: 'SAS Monospace', 'Courier New', Courier, monospace;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: x-small;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-style: normal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-weight: normal;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 7px;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.beforecaption&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: #FAFBFE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #112277;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: Arial, 'Albany AMT', Helvetica, Helv;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: x-small;&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;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524309#M142573</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2019-01-03T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524345#M142587</link>
      <description>&lt;P&gt;Weird. Your code also works for me. The mail body I get is&amp;nbsp;similar to yours,&amp;nbsp;except for the !doctype, and I don't know if that would cause the body content to be shown as text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My only other guess is that the problem is in the receiving end. Did you check if&amp;nbsp;html is enabled in your mail program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&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 http-equiv="Content-Type" content="text/html; charset=iso-8859-15"&amp;gt;&amp;lt;meta name="Generator" content="SAS Software Version 9.4, see www.sas.com"&amp;gt;

&amp;lt;title&amp;gt;SAS Output&amp;lt;/title&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
&amp;lt;!--
.aftercaption
{
  background-color: #E0E0E0;
  border-spacing: 0px;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  font-style: normal;
  font-weight: bold;
  padding-top: 4pt;
}
.batch
{
  background-color: #D3D3D3;
  border: 1px solid #000000;
  border-collapse: separate;
  border-spacing: 1px;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2019 18:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/524345#M142587</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2019-01-03T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525314#M142933</link>
      <description>&lt;P&gt;Any help please- The html email sent is displaying in plain code. Do we have any other option to send the sas report to email?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 02:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525314#M142933</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2019-01-08T02:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: procedure data send in body email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525326#M142938</link>
      <description>&lt;P&gt;As attachment?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 05:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525326#M142938</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-01-08T05:12:49Z</dc:date>
    </item>
    <item>
      <title>sending html email displays email content in plain html code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525420#M142972</link>
      <description>&lt;P&gt;I tried SAS 9.4 windows PC and SAS 7.1 EG from both sending html email from SAS gets email content as plain html code. Please help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Please let me know do we have any alternate solutions to send email as html report?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 14:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/procedure-data-send-in-body-email/m-p/525420#M142972</guid>
      <dc:creator>radha009</dc:creator>
      <dc:date>2019-01-08T14:42:37Z</dc:date>
    </item>
  </channel>
</rss>

