<?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 Colors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524731#M367485</link>
    <description>Hi, how can i put color to the output which will be sent to the outlook through email commando. look at:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mailx -s "date "+%Y%m%d"` " $correos  &amp;lt; ${ruta_monitor}/${b}_m.log&lt;BR /&gt;&lt;BR /&gt;${b}_m.log contains:&lt;BR /&gt;Cat&lt;BR /&gt;Dog&lt;BR /&gt;Chair &lt;BR /&gt;Computer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;once the file has been sent (through email command) i need "Cat" be in red color and "Chair" in blue color showed once the user has been open their email notification.&lt;BR /&gt;&lt;BR /&gt;how can i do that?&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Oct 2009 17:01:41 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2009-10-30T17:01:41Z</dc:date>
    <item>
      <title>Colors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524731#M367485</link>
      <description>Hi, how can i put color to the output which will be sent to the outlook through email commando. look at:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mailx -s "date "+%Y%m%d"` " $correos  &amp;lt; ${ruta_monitor}/${b}_m.log&lt;BR /&gt;&lt;BR /&gt;${b}_m.log contains:&lt;BR /&gt;Cat&lt;BR /&gt;Dog&lt;BR /&gt;Chair &lt;BR /&gt;Computer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;once the file has been sent (through email command) i need "Cat" be in red color and "Chair" in blue color showed once the user has been open their email notification.&lt;BR /&gt;&lt;BR /&gt;how can i do that?&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2009 17:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524731#M367485</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2009-10-30T17:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Colors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524732#M367486</link>
      <description>Mail must be in html format (for example) in order to be able to be formatted. So I would consider to add a full html body and tags.</description>
      <pubDate>Fri, 30 Oct 2009 17:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524732#M367486</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-10-30T17:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Colors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524733#M367487</link>
      <description>how could i do that?&lt;BR /&gt;how can i force to email command be sent as html ? and how could i put color ?&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2009 17:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524733#M367487</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2009-10-30T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Colors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524734#M367488</link>
      <description>basically, either you're log file would have to be formatted with html tags, or you would have to process it to add them prior to emailing.  given your example &amp;amp; colors, at the minimum, the file being sent would need to look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:red"&gt;&lt;BR /&gt;Cat&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:black"&gt;&lt;BR /&gt;&lt;BR /&gt;Dog&lt;BR /&gt;&lt;BR /&gt;Chair&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:blue"&gt;&lt;BR /&gt;Computer&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;try pasting the above into notepad.  save as demo2.html and then opening it.  should pop Explorer and display.&lt;BR /&gt;&lt;BR /&gt;you then send the file as an attachment.  There may be other ways, but you're not going to be able to "colorize" the file without somekind of reformatting.  By that, I mean that you can't send just plain-text and expect to get colors out the receiving end</description>
      <pubDate>Fri, 30 Oct 2009 18:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524734#M367488</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-10-30T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Colors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524735#M367489</link>
      <description>Manuales,&lt;BR /&gt;&lt;BR /&gt;You can write the html file and attach with the mail,&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;------unix_col_mail.html-------&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;unix_color_mail&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;H1&gt;Below TEXTs in Color&lt;/H1&gt;&lt;BR /&gt;&lt;FONT color="Red"&gt; Cat &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="Green"&gt; Dog &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="Blue"&gt; Chair &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ux2dos unix_col_mail.html | uuencode unix_col_mail.html | mailx -m -s "TEST. MAIL " youremail@domain.com &amp;lt; Text_body_file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- Also if the mail client can support direct html code display  you can send it like:&lt;BR /&gt;&lt;BR /&gt;# cat unix_col_mail.html | mailx -m -s "TEST. MAIL " youremail@domain.com &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Raj.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Oct 2009 18:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/colors/m-p/4524735#M367489</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-10-30T18:49:59Z</dc:date>
    </item>
  </channel>
</rss>

