<?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 put text with color in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968501#M376589</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to send an email from sas .&lt;/P&gt;
&lt;P&gt;I want that one sentence (text) be in red color&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME mail EMAIL 
from="Ron.Dave@gmail.com"
TO=("Ron.Dave@gmail.com")
SUBJECT=" UPDATE"
encoding='utf-8'  
CONTENT_TYPE="text/plain" ;
ODS LISTING CLOSE;

 
data _null_;
file mail;
put 'HELLO';
put  &lt;FONT color="#FF0000"&gt;style(header)={background=Red color=blue}&lt;/FONT&gt;  "Here is my report";
put ' ';
put ' ';
put ' ';
put 'Dave';
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2025 07:50:20 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-06-10T07:50:20Z</dc:date>
    <item>
      <title>put text with color</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968501#M376589</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to send an email from sas .&lt;/P&gt;
&lt;P&gt;I want that one sentence (text) be in red color&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME mail EMAIL 
from="Ron.Dave@gmail.com"
TO=("Ron.Dave@gmail.com")
SUBJECT=" UPDATE"
encoding='utf-8'  
CONTENT_TYPE="text/plain" ;
ODS LISTING CLOSE;

 
data _null_;
file mail;
put 'HELLO';
put  &lt;FONT color="#FF0000"&gt;style(header)={background=Red color=blue}&lt;/FONT&gt;  "Here is my report";
put ' ';
put ' ';
put ' ';
put 'Dave';
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 07:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968501#M376589</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-06-10T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: put text with color</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968508#M376591</link>
      <description>&lt;P&gt;You need an SMTP e-mail host !&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_blank"&gt;How to use Gmail to send a message from a SAS program - The SAS Dummy&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need&amp;nbsp;&lt;/P&gt;
&lt;PRE class="sas"&gt;type=&lt;SPAN&gt;'text/html'&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;instead of plain text !&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/04/21/use-sas-send-email-embeds-graph-body-email/" target="_blank"&gt;Use SAS to send an email that embeds a graph in the body of the email - SAS Users&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ciao,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 10:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968508#M376591</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2025-06-10T10:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: put text with color</title>
      <link>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968511#M376594</link>
      <description>&lt;P&gt;You will need code similar to the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mymail email 
        from="Ron.Dave@gmail.com"
        TO=("Ron.Dave@gmail.com")
        subject="Update" 
        type='text/html';

data _null_;
  file mymail;
  put '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;';
  put '&amp;lt;p&amp;gt;Hello&amp;lt;/p&amp;gt;';
  put '&amp;lt;p&amp;gt;&amp;lt;font color="blue"&amp;gt;Here is my report&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;';
  put '&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;';
  put '&amp;lt;/html&amp;gt;';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Jun 2025 11:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/put-text-with-color/m-p/968511#M376594</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-10T11:47:40Z</dc:date>
    </item>
  </channel>
</rss>

