<?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: mailx, sendmail html in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847834#M786161</link>
    <description>Pfff. It works. It didn't work last friday. Now the mails are being received by everone. Hmmm. Thanks for helping.</description>
    <pubDate>Mon, 27 Feb 2006 03:38:13 GMT</pubDate>
    <dc:creator>Roderick Derks</dc:creator>
    <dc:date>2006-02-27T03:38:13Z</dc:date>
    <item>
      <title>mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847821#M786148</link>
      <description>Here is what we have, HPUX 10.20 and Sendmail 8.9.3.1.  What we are trying to do is send the html source code to a Outlook 2000 client and have it display the page like a browser would.  However all I can manage is to get the source code appear in the body.  I have searched the forums but have been unable to find a soultion as of yet.  Does anyone have some suggestions as how to remedy this?</description>
      <pubDate>Mon, 17 Mar 2003 21:32:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847821#M786148</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2003-03-17T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847822#M786149</link>
      <description>hi .. in your html page add this to the top above the html code &lt;BR /&gt;&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;&lt;BR /&gt;Look at the attached example.&lt;BR /&gt;The from and subject are optional.&lt;BR /&gt;&lt;BR /&gt;Then&lt;BR /&gt;&lt;BR /&gt;cat file.html | sendmail whoever@wherever.com&lt;BR /&gt;&lt;BR /&gt;and it will get to your outlook 2000 client with the html inside of the body.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2003 21:53:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847822#M786149</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2003-03-17T21:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847823#M786150</link>
      <description>If the html code can be put into a file, here is a reliable program that will send it as an attachment.&lt;BR /&gt;&lt;BR /&gt;This is a tested, production script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 17 Mar 2003 21:58:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847823#M786150</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-17T21:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847824#M786151</link>
      <description>I do something very similar to what Richard suggests.  Below is a snippet of the script I use to send out HTML messages.&lt;BR /&gt;&lt;BR /&gt;   # Make the message header file&lt;BR /&gt;   echo "Subject: This is my subject" &amp;gt; header.tmp&lt;BR /&gt;   echo "Mime-Version: 1.0" &amp;gt;&amp;gt; header.tmp&lt;BR /&gt;   echo "Content-Type: text/html; charset=usascii" &amp;gt;&amp;gt; header.tmp&lt;BR /&gt;   echo  &amp;gt;&amp;gt; header.tmp&lt;BR /&gt;&lt;BR /&gt;   # Cat the header and message file into sendmail and send it&lt;BR /&gt;   cat header.tmp message.html | /usr/sbin/sendmail whomever@whereever.org&lt;BR /&gt;&lt;BR /&gt;   rm header.tmp&lt;BR /&gt;&lt;BR /&gt;Looking at the script Steven posted, it seems that I could do without the MIME part, since there's no MIME encoding.  Steven's script looks more full-service than the above, but I thought I'd post this because it's simple.&lt;BR /&gt;&lt;BR /&gt;Steven, where does the HTML message get its content type set in your script?  I see the multi-part divider, but I thought that each section needed to have its type defined within the section (this is from memory, so please forgive me if I'm wrong).&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Tue, 18 Mar 2003 15:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847824#M786151</guid>
      <dc:creator>Seth Parker</dc:creator>
      <dc:date>2003-03-18T15:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847825#M786152</link>
      <description>Thanks for the help folks.</description>
      <pubDate>Tue, 18 Mar 2003 16:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847825#M786152</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2003-03-18T16:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847826#M786153</link>
      <description>It works great with Sendmail, but not with Mailx.  Is there a way to force the content type on Mailx from text/plain to text/html?</description>
      <pubDate>Tue, 18 Mar 2003 17:45:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847826#M786153</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2003-03-18T17:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847827#M786154</link>
      <description>hi for mailx try &lt;BR /&gt;&lt;BR /&gt;uuencode index.html index.html | mailx -s "your subject" whoever@wherever.com&lt;BR /&gt;&lt;BR /&gt;your index.html file does not have to have the Content-Type: text/html.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Tue, 18 Mar 2003 17:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847827#M786154</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2003-03-18T17:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847828#M786155</link>
      <description>That seems to work however, it sends the file as an attachment.  For our purposes we want the file displayed within the body of the message.</description>
      <pubDate>Tue, 18 Mar 2003 18:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847828#M786155</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2003-03-18T18:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847829#M786156</link>
      <description>I originally tried the mailx way too, but I could never get it to work.  Mailx puts the message headers *above* whatever you have as your message text, so the content type gets lost.  Sendmail just sends the input (or that was what I determined from the research and experimentation I did).&lt;BR /&gt;&lt;BR /&gt;Mailx clobbers whaterver you try to do to make it not just be a text message, so I think you're going to be stuck with the sendmail method.&lt;BR /&gt;&lt;BR /&gt;Do some experimentation.  I sent many messages to myself and examined the actual message text (not the rendered version) to see what was happening.&lt;BR /&gt;&lt;BR /&gt;Good luck!</description>
      <pubDate>Tue, 18 Mar 2003 19:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847829#M786156</guid>
      <dc:creator>Seth Parker</dc:creator>
      <dc:date>2003-03-18T19:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847830#M786157</link>
      <description>hi ..&lt;BR /&gt;yes it does send it as an attachment but the attachment is also in the body of the email if you open the email and not just look at it through the preview window.&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Tue, 18 Mar 2003 19:43:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847830#M786157</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2003-03-18T19:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847831#M786158</link>
      <description>I used the ideas in the script Steven Protter added and it works ok except for the Cc: and Bcc: Mails to these addresses are not send.&lt;BR /&gt;&lt;BR /&gt;  # create mail&lt;BR /&gt;  echo "To:      $EMAIL_TO" &amp;gt; ${tmpmail} &lt;BR /&gt;  echo "From:    $EMAIL_FROM" &amp;gt;&amp;gt; ${tmpmail} &lt;BR /&gt;  echo "Cc:      ${EMAIL_CC} ${EMAIL_BCC}" &amp;gt;&amp;gt; ${tmpmail} &lt;BR /&gt;  echo "Bcc:      $EMAIL_BCC" &amp;gt;&amp;gt; ${tmpmail} &lt;BR /&gt;  echo "Subject: $EMAIL_SUBJECT" &amp;gt;&amp;gt; ${tmpmail} &lt;BR /&gt;&lt;BR /&gt;Anyone got an idea?</description>
      <pubDate>Sat, 25 Feb 2006 09:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847831#M786158</guid>
      <dc:creator>Roderick Derks</dc:creator>
      <dc:date>2006-02-25T09:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847832#M786159</link>
      <description>Jason,&lt;BR /&gt;&lt;BR /&gt;Create a file .mailrc in your $HOME directory and add the following variables (recognized by mailx) to it...&lt;BR /&gt;&lt;BR /&gt;set charset=us-ascii&lt;BR /&gt;set encoding=8bit&lt;BR /&gt;&lt;BR /&gt;...then mailx your html file in the body of the message.&lt;BR /&gt;&lt;BR /&gt;hope it helps!</description>
      <pubDate>Sun, 26 Feb 2006 05:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847832#M786159</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-02-26T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847833#M786160</link>
      <description>Hello Jason,&lt;BR /&gt;&lt;BR /&gt;I'm using "sendmail -t" to send the emails.&lt;BR /&gt;&lt;BR /&gt;echo "To:      $EMAIL_TO" &amp;gt; ${tmpmail}&lt;BR /&gt;echo "From:    $EMAIL_FROM" &amp;gt;&amp;gt; ${tmpmail}&lt;BR /&gt;echo "Cc:      ${EMAIL_CC} &amp;gt;&amp;gt; ${tmpmail}&lt;BR /&gt;echo "Bcc:      $EMAIL_BCC" &amp;gt;&amp;gt; ${tmpmail}&lt;BR /&gt;echo "Subject: $EMAIL_SUBJECT" &amp;gt;&amp;gt; ${tmpmail}&lt;BR /&gt;&lt;BR /&gt;uuencode ${tmpbody} ${tmpbody} &amp;gt;&amp;gt; ${tmpmail}&lt;BR /&gt;cat ${tmpmail}| sendmail -t&lt;BR /&gt;&lt;BR /&gt;Mail is received by the "To:" address, subject and body are OK. Only problem is that the "Cc:" (and "Bcc:") don't receive an email. I can't find the problem.</description>
      <pubDate>Mon, 27 Feb 2006 03:20:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847833#M786160</guid>
      <dc:creator>Roderick Derks</dc:creator>
      <dc:date>2006-02-27T03:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847834#M786161</link>
      <description>Pfff. It works. It didn't work last friday. Now the mails are being received by everone. Hmmm. Thanks for helping.</description>
      <pubDate>Mon, 27 Feb 2006 03:38:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847834#M786161</guid>
      <dc:creator>Roderick Derks</dc:creator>
      <dc:date>2006-02-27T03:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: mailx, sendmail html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847835#M786162</link>
      <description>Thanks for the help</description>
      <pubDate>Mon, 27 Feb 2006 08:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailx-sendmail-html/m-p/4847835#M786162</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2006-02-27T08:35:23Z</dc:date>
    </item>
  </channel>
</rss>

