<?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: HTML email output issue in M8 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973036#M377635</link>
    <description>&lt;P&gt;I assume that's just the beginning of the email?&amp;nbsp; So basically the body of the email is showing you the HTML code instead of rendering the HTML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have both M6 and M8 available, you might try writing the MSOFFICE2K output to a file, and then comparing the files you get from M6 and M8 to look for differences.&amp;nbsp; I'd be surprised if SAS intentionally changed the MSOFFICE2K template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the differences, you could send the sample code and output files to tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2025 13:25:12 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2025-08-21T13:25:12Z</dc:date>
    <item>
      <title>HTML email output issue in M8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973035#M377634</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Recently we have upgraded our SAS env from M6 to M8 . when we try to run below code. It is sending Stange email.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing has changed expect versions. same code works fine in M6 but not in M8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mail();

	title;
	footnote;
	ods listing close;
	filename mailit email
	to = ("xxx.com")
	subject = "Checker Reporting";



	ODS ESCAPECHAR='~';
	ODS MSOFFICE2K FILE=MAILIT STYLE=SASWEB
	OPTIONS(PAGEBREAK="NO");


	proc odstext;
	p "Please note that XXXXXXXX" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];	
	p "" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	p "" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	;

	p "If you have any questions regarding this email reply to:" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	p " quote reference : CHECKER.sas " / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	p "" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	p "Thanks and regards" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];
	p "team" / style=[fontsize=10pt 
	fontfamily=Calibri color=black];

	;

	run;	
 
	ODS _ALL_ CLOSE;

	%mend;

%mail;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;output email we recive.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html xmlns:v="urn:schemas-microsoft-com:vml"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;meta name="Generator" content="SAS Software Version 9.4, see https://eur02.safelinks.protection.outlook.comsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=tQbCBFwdLaOFaGF55ZI%2BvCVbC7fbvgFh3KjT7X01hiw%3D&amp;amp;reserved=0"&amp;gt;
&amp;lt;meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"&amp;gt;
&amp;lt;title&amp;gt;SAS Output&amp;lt;/title&amp;gt;
&amp;lt;style type="text/css"&amp;gt;
&amp;lt;!--
.accessiblecaption
{
  background-color: #FFFFFF;
  color: #003399;
  font-family: Arial, Helvetica, sans-serif;
  font-size: x-small;
  font-style: normal;
  font-weight: normal;
}
.aftercaption
{
  background-color: #FFFFFF;
  border-spacing: 0px;
  color: #003399;
  font-family: Arial, Helvetica, sans-serif;
  font-size: x-small;
  font-style: normal;
  font-weight: bold;
}
.batch
{
  background-color: #FFFFFF;
  border: 1px solid #000000;
  border-collapse: separate;
  border-spacing: 1px;
  color: #003399;
  font-family: 'SAS Monospace', 'Courier New', Courier, monospace;
  font-size: x-small;
  font-style: normal;
  font-weight: normal;
  padding: 7px;
}
.beforecaption
{
  background-color: #FFFFFF;
  border-spacing: 0px;
  color: #003399;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;SS&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 13:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973035#M377634</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-08-21T13:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: HTML email output issue in M8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973036#M377635</link>
      <description>&lt;P&gt;I assume that's just the beginning of the email?&amp;nbsp; So basically the body of the email is showing you the HTML code instead of rendering the HTML?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have both M6 and M8 available, you might try writing the MSOFFICE2K output to a file, and then comparing the files you get from M6 and M8 to look for differences.&amp;nbsp; I'd be surprised if SAS intentionally changed the MSOFFICE2K template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the differences, you could send the sample code and output files to tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 13:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973036#M377635</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-08-21T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: HTML email output issue in M8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973037#M377636</link>
      <description>Sorry M6 is decommissioned.&lt;BR /&gt;yes, that is the beginning of the email</description>
      <pubDate>Thu, 21 Aug 2025 13:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973037#M377636</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2025-08-21T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: HTML email output issue in M8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973038#M377637</link>
      <description>&lt;P&gt;Try adding the TYPE= option to your FILENAME statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mailit email
	to = ("xxx@xxx.com")
	subject = "Checker Reporting" type="text/html" ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Aug 2025 14:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/HTML-email-output-issue-in-M8/m-p/973038#M377637</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-08-21T14:06:36Z</dc:date>
    </item>
  </channel>
</rss>

