<?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: Script to send HTML email in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711401#M791012</link>
    <description>When I email a HTML document it comes through as html code.&lt;BR /&gt;&lt;BR /&gt;I am sending the file like this. (Typo above)&lt;BR /&gt;&lt;BR /&gt;mailx -s "test html message marty" &lt;HTML_MESSAGE.HTML&gt;&lt;/HTML_MESSAGE.HTML&gt;&lt;BR /&gt;There has to be a way to tag the html file taht is an html so the client software will display it.&lt;BR /&gt;I use outlook and it open other html emails but I do not see how it knows to do so.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
    <pubDate>Tue, 17 Jan 2006 15:59:04 GMT</pubDate>
    <dc:creator>Marty Metras</dc:creator>
    <dc:date>2006-01-17T15:59:04Z</dc:date>
    <item>
      <title>Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711399#M791010</link>
      <description>I have scripts that check logs and files that users need to be alerted to and it email them a message.&lt;BR /&gt;What I wanted to do is send the emails like an html document so I could add some color to it so they might know how fast they need to look at it.&lt;BR /&gt;Using shell script to create a HTML attachment is easy.&lt;BR /&gt;What I do not know is how code it so when I send it and the uses opens the email it is a html document.&lt;BR /&gt;After searching the web I find a lot of package that do this. I don't want to any thing fancy. Besides I have fun writing little scrpts that do neat things.&lt;BR /&gt;&lt;BR /&gt;Normally I just use "mail -s "Alert Message" userID What would be needed if this message was HTML.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 17 Jan 2006 15:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711399#M791010</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-01-17T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711400#M791011</link>
      <description>The mail client the recipient is using should detect the html in the message automatically, and then display it accordingly.&lt;BR /&gt;&lt;BR /&gt;You can try using uuencode with it, but I don't belive it would be needed.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 17 Jan 2006 15:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711400#M791011</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2006-01-17T15:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711401#M791012</link>
      <description>When I email a HTML document it comes through as html code.&lt;BR /&gt;&lt;BR /&gt;I am sending the file like this. (Typo above)&lt;BR /&gt;&lt;BR /&gt;mailx -s "test html message marty" &lt;HTML_MESSAGE.HTML&gt;&lt;/HTML_MESSAGE.HTML&gt;&lt;BR /&gt;There has to be a way to tag the html file taht is an html so the client software will display it.&lt;BR /&gt;I use outlook and it open other html emails but I do not see how it knows to do so.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 17 Jan 2006 15:59:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711401#M791012</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-01-17T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711402#M791013</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;instead of html formatted you can use the command "banner" to generate your message-file. i don't know whether it helps you.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 17 Jan 2006 16:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711402#M791013</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-01-17T16:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711403#M791014</link>
      <description>I know about banner.&lt;BR /&gt;I do that now with some of the messages.&lt;BR /&gt;I thought the might be an easy to send a hrml file the would open right up without being an attachment.&lt;BR /&gt;I just wanted to try to get a little fancy.&lt;BR /&gt;Marty</description>
      <pubDate>Tue, 17 Jan 2006 16:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711403#M791014</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-01-17T16:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711404#M791015</link>
      <description>Marty -&lt;BR /&gt;We have many jobs that do this, sending the HTML as an attachment to a user on Outlook from our 11.0 machines.&lt;BR /&gt;&lt;BR /&gt;This is the mailx command used -&lt;BR /&gt;&lt;BR /&gt;uuencode ${OUTPUT_FILE} "Netbackup Daily Report_${Yesterday}.html" | $MAIL -s "Netbackup Nightly Jobs Report For ${YDATE}" ${ADDRESS}&lt;BR /&gt;&lt;BR /&gt;If the variables are not clear to you I can give the same example with the actual values but OUTPUT_FILE=the unix html file, YDATE is a formated date for yesterday as is Yesterday [different formats], ADDRESS is the recipient email address.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 17 Jan 2006 16:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711404#M791015</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-01-17T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711405#M791016</link>
      <description>Do you want it embedded or as an attachement?&lt;BR /&gt;&lt;BR /&gt;I prefer attachements.&lt;BR /&gt;&lt;BR /&gt;Download and install mpack:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Run like so:&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/mpack -s "svr004 cfg2html" /opt/cfg2html/svr004.html gwild@mydomian.ca&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 17 Jan 2006 16:37:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711405#M791016</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-17T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711406#M791017</link>
      <description>Attachments are easy.&lt;BR /&gt;I guess what I want is an embedded html email.&lt;BR /&gt;&lt;BR /&gt;Marty&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2006 16:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711406#M791017</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-01-17T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711407#M791018</link>
      <description>I think the only way to send embdded html is via Perl - you will need to write a script...&lt;BR /&gt;&lt;BR /&gt;I did find this via google - that may help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://willmaster.com/possibilities/archives/wmp20020716001.shtml" target="_blank"&gt;http://willmaster.com/possibilities/archives/wmp20020716001.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is an example cgi script...look at the "sub SendEmail" section...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 18 Jan 2006 09:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711407#M791018</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-18T09:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711408#M791019</link>
      <description>Tested the following - it works:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://caspian.dotconf.net/menu/Software/SendEmail/" target="_blank"&gt;http://caspian.dotconf.net/menu/Software/SendEmail/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It is quite a large script...&lt;BR /&gt;&lt;BR /&gt;To send html embeded:&lt;BR /&gt;&lt;BR /&gt;cat /path/to/somefile.html | sendEmail.pl -f from@email.address -t to@email.address -u "Your Subject"&lt;BR /&gt;&lt;BR /&gt;The html file must start with &lt;BR /&gt;&lt;BR /&gt;If sendmail isn't running as a daemon on the localhost, then modify the line in the script from localhost to your email server:&lt;BR /&gt;&lt;BR /&gt;"server"               =&amp;gt; 'localhost',                         ## Default SMTP server&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds..Geoff</description>
      <pubDate>Wed, 18 Jan 2006 10:18:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711408#M791019</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-18T10:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711409#M791020</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;a bit late, but maybe ...&lt;BR /&gt;mail should start with&lt;BR /&gt;&lt;BR /&gt;To: auser@mycompany.com&lt;BR /&gt;CC: anotheruser&lt;BR /&gt;Subject: report&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt; &amp;lt;- a blank line&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt;&lt;BR /&gt;then pipe to /usr/lib/sendmail -t&lt;BR /&gt;&lt;BR /&gt;I didn't details sending file as attachement as you find it too easy ;-)&lt;BR /&gt;&lt;BR /&gt;Jean-Yves</description>
      <pubDate>Wed, 18 Jan 2006 11:02:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711409#M791020</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2006-01-18T11:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711410#M791021</link>
      <description>Great Jean-Yves&lt;BR /&gt;&lt;BR /&gt;It is easy after all.&lt;BR /&gt;I just add "Content-Type: text/html"&lt;BR /&gt;and a blank line to the top if the a HTML file and send it.&lt;BR /&gt;It is more involved with links and graphics but I am not planning any of that.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;Marty</description>
      <pubDate>Wed, 18 Jan 2006 11:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711410#M791021</guid>
      <dc:creator>Marty Metras</dc:creator>
      <dc:date>2006-01-18T11:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send HTML email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711411#M791022</link>
      <description>Or, instead of adding to a file, just do this:&lt;BR /&gt;&lt;BR /&gt;echo "To: you@yourdomain.com\nSubject: your subject\nContent-Type: text/html\n\n"`cat /path/to/somefile.html` | sendmail -t&lt;BR /&gt;&lt;BR /&gt;Works like a charm  :)&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 18 Jan 2006 14:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-send-html-email/m-p/3711411#M791022</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-01-18T14:23:48Z</dc:date>
    </item>
  </channel>
</rss>

