<?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 contains html code as an output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319812#M17535</link>
    <description>Hi:&lt;BR /&gt;  Talk to your mail administrators to see whether you are allowed to use HTML in the body of an email; or send the HTML file as an attachment (or better yet, make a PDF file and use that as an attachment -- most mail systems allow PDF); or open a track with Tech Support.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
    <pubDate>Sun, 18 Dec 2016 19:27:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-12-18T19:27:05Z</dc:date>
    <item>
      <title>email contains html code as an output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319744#M17531</link>
      <description>&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;this is my program&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename&lt;SPAN&gt; ofmail &lt;/SPAN&gt;email&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;"zzzzz@gmail.com"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subject&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;"sashelp.class"&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods&lt;/SPAN&gt; &lt;SPAN&gt;html&lt;/SPAN&gt; &lt;SPAN&gt;body&lt;/SPAN&gt;=ofmail &lt;SPAN&gt;style&lt;/SPAN&gt;=normal;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;print&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;=sashelp.class;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods html close&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;output in email looks like below instead of sashelp.class table&lt;/U&gt;&lt;/STRONG&gt;&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="https://communities.sas.com/t5/forums/postpage/choose-node/true/interaction-style/%22http:/" target="_blank"&gt;&lt;SPAN&gt;www.sas.com&lt;/SPAN&gt;&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;.aligncontents&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; background-color: transparent;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border: 0px solid #000000;&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: 'Trebuchet MS', Helvetica, Arial, 'Albany AMT', sans-serif;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: 12pt;&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; margin: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; padding: 5px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; text-align: left;&lt;/P&gt;&lt;P&gt;&amp;nbsp; vertical-align: middle;&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: #FFFFFF;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-bottom-width: 1px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-color: #3872AC;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-left-width: 2px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-right-width: 1px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-spacing: 0px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-style: solid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; border-top-width: 2px;&lt;/P&gt;&lt;P&gt;&amp;nbsp; color: #000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-family: 'Courier New', Courier, fixed;&lt;/P&gt;&lt;P&gt;&amp;nbsp; font-size: 9pt;&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;..&lt;/P&gt;&lt;P&gt;and so on diff weird code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why this happening ?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 19:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319744#M17531</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2016-12-17T19:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: email contains html code as an output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319746#M17532</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; The "diff weird code" is exactly what you told ODS to send to your FILENAME OFMAIL file using the EMAIL engine.&lt;BR /&gt;&lt;BR /&gt; ODS HTML created an HTML file, a pure HTML 4 file, as you can see from the &amp;lt;DOCTYPE&amp;gt; at the top of the file. If you want to send this file as an attachment, then you need to use the ATTACH= option in your FILENAME statement and, generally, create the HTML file BEFORE you initiate the email. In this case, the BODY of your mail is created with a DATA step that just says something like here's the report for sashelp.class or something like that and then the receiver of the mail opens/saves the attachment.&lt;BR /&gt;&lt;BR /&gt;If you are allowed by your mail system to send HTML in the body of the mail (something you should check before you try this, since many email systems block sending HTML in an email), then you need to follow a different method, such as adding content_type="text/html" to your FILENAME statement. &lt;BR /&gt;&lt;BR /&gt; See the example code on this Tech Support note for more information &lt;A href="http://support.sas.com/kb/23/636.html" target="_blank"&gt;http://support.sas.com/kb/23/636.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 21:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319746#M17532</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-17T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: email contains html code as an output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319786#M17533</link>
      <description>&lt;P&gt;I tried content_type= as well as type= options but still receiving the same code in output. What else can be done ?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 05:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319786#M17533</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2016-12-18T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: email contains html code as an output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319812#M17535</link>
      <description>Hi:&lt;BR /&gt;  Talk to your mail administrators to see whether you are allowed to use HTML in the body of an email; or send the HTML file as an attachment (or better yet, make a PDF file and use that as an attachment -- most mail systems allow PDF); or open a track with Tech Support.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 18 Dec 2016 19:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/319812#M17535</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-18T19:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: email contains html code as an output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/320576#M17554</link>
      <description>&lt;P&gt;Admin says it is allowed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 18:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/email-contains-html-code-as-an-output/m-p/320576#M17554</guid>
      <dc:creator>Attyslogin</dc:creator>
      <dc:date>2016-12-21T18:15:37Z</dc:date>
    </item>
  </channel>
</rss>

