<?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 + attachment in the same mail in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884931#M771091</link>
    <description>Please help... no suggestions????</description>
    <pubDate>Thu, 26 Oct 2006 09:32:21 GMT</pubDate>
    <dc:creator>Stefan.yu</dc:creator>
    <dc:date>2006-10-26T09:32:21Z</dc:date>
    <item>
      <title>HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884920#M771080</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and a file will be attached.&lt;BR /&gt;I have tried this but the body comes as html source and not formatted.&lt;BR /&gt;&lt;BR /&gt;cat /tmp/mail.html ; uuencode file.xls file.xls ) | /usr/lib/sendmail -t "myname@mydomain.com"&lt;BR /&gt;&lt;BR /&gt;The mail.html file conatins the following text:&lt;BR /&gt;From: myname2@mydomain.com&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;Title of page&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is my first homepage. &lt;B&gt;This text is bold&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;BR /&gt;Stefan.</description>
      <pubDate>Mon, 23 Oct 2006 08:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884920#M771080</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-23T08:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884921#M771081</link>
      <description>Try Steven script in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647&amp;amp;admit=-682735245+1161612452958+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647&amp;amp;admit=-682735245+1161612452958+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 23 Oct 2006 09:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884921#M771081</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-10-23T09:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884922#M771082</link>
      <description>Hi Geoff,&lt;BR /&gt;I tried the script but always the same results. The attachement is linked well but the body is the html source and not the html formatted like I would like to have it.&lt;BR /&gt;&lt;BR /&gt;Any other suggestions from anyone ?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;Dejan.</description>
      <pubDate>Mon, 23 Oct 2006 13:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884922#M771082</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-23T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884923#M771083</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;See Frank's response in this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;He passes MIME headers, including Content-Type, directly to sendmail.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 23 Oct 2006 13:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884923#M771083</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-23T13:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884924#M771084</link>
      <description>Shalom Sefan,&lt;BR /&gt;&lt;BR /&gt;I don't think the attachment can be in the body of the email.&lt;BR /&gt;&lt;BR /&gt;If you use this script for the attachment:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think you can easily adapt it to handle the html requirement.&lt;BR /&gt;&lt;BR /&gt;The script is production. Please change the default email address or someone I used to work with is going to be annoyed.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 23 Oct 2006 15:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884924#M771084</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-10-23T15:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884925#M771085</link>
      <description>Stefan -&lt;BR /&gt;Well I have stayed away from this since it has been answered so many times in the past.&lt;BR /&gt;Attached you will find many examples of using mailx including the attachment.&lt;BR /&gt;in your case the command would look somewhat like this -&lt;BR /&gt;uuencode YOUR_FILE "YOUR_FILE.htm" | mailx -s "Some Subject" someone@somewhere.com&lt;BR /&gt;&lt;BR /&gt;Note that the attached is our shop's in house doc and not endorsed outside of our business.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;-dl</description>
      <pubDate>Tue, 24 Oct 2006 11:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884925#M771085</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-10-24T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884926#M771086</link>
      <description>Hi Steven, Hi Spex &lt;BR /&gt;&lt;BR /&gt;Sorry but noone of the 2 solutions works correctly (or maybe i misundertand you).&lt;BR /&gt;&lt;BR /&gt;Spex, with your solution, I do not see anywhere where to put my html source an to see it formatted in my e-mail. I tried to replace the line echo "DMS file attached" &amp;gt;&amp;gt; $fmesg with my html source but what i see in my email is the source code and not what I want.&lt;BR /&gt;&lt;BR /&gt;Steven,&lt;BR /&gt;with your solution I see correctly the html text formatted but the attachment is not attachment but directly in the body of the message.&lt;BR /&gt;&lt;BR /&gt;If you have a complete example please describe me in details what are the steps to do and what i have forgotten&lt;BR /&gt;&lt;BR /&gt;So, maybe I was not clear enough so I try to re-ask my question:&lt;BR /&gt;I want to have both an attchment linked to my e-mail and html text (not the source but the formatted text).&lt;BR /&gt;&lt;BR /&gt;In other words, The body of the message have to appear in bold, blue, underlined and an attachment should be linked.&lt;BR /&gt;I know that:&lt;BR /&gt;1/ cat /tmp/mail.html | /usr/lib/sendmail -t "myname@mydomain.com" gives me the correct html format in the body&lt;BR /&gt;2/ uuencode file.xls file.xls  | /usr/lib/sendmail -t "myname@mydomain.com"&lt;BR /&gt;gives me an attchment in my mail&lt;BR /&gt;&lt;BR /&gt;BUT... i am not able to merge both results (it looks like if there is a attachment the body is always giving me the html source code)&lt;BR /&gt;&lt;BR /&gt;Please help to solve that issue...&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Oct 2006 11:21:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884926#M771086</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-24T11:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884927#M771087</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;Your suggestion produces a message with an HTML file attachment.  Stefan is looking for inline HTML, which is embedded in the message body.  The only way I know of doing is this setting the Content-Type MIME header to text/html.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 24 Oct 2006 11:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884927#M771087</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-24T11:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884928#M771088</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;Your suggestions is sending html in an attachment and it is not what I want.&lt;BR /&gt;OK, so with Dave's reply I can see that MY question was not clear :(.&lt;BR /&gt;Hope my previous mail is clearer ;)&lt;BR /&gt;&lt;BR /&gt;Stefan</description>
      <pubDate>Tue, 24 Oct 2006 11:36:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884928#M771088</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-24T11:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884929#M771089</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;I just tested this with Outlook, and and the HTML is rendered without a problem.  Here's a step-by-step:&lt;BR /&gt;&lt;BR /&gt;1) Save the attachment to this posting as domail.sh (courtesy of Frank Slootweg).&lt;BR /&gt;2) Transfer domail.sh to your server.&lt;BR /&gt;3) # chmod +x domail.sh&lt;BR /&gt;4) # echo "&lt;B&gt;Test&lt;/B&gt; &lt;I&gt;message&lt;/I&gt;" &amp;gt; body.html&lt;BR /&gt;5) ./domail.sh "subject_line" your@email.addr &amp;lt; body.html&lt;BR /&gt;&lt;BR /&gt;As I mentioned in my last posting, the answer is in this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=202647&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Tue, 24 Oct 2006 12:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884929#M771089</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-10-24T12:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884930#M771090</link>
      <description>Hi Spex,&lt;BR /&gt;&lt;BR /&gt;Thank you agin for your reply. I agree that your answer is correctly giving me the correct html in the body of my mail... BUT what about the file attachment I want to link to my e-mail ?&lt;BR /&gt;In your steps, I can not see anything refering to an attached file i would like to link ...&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Oct 2006 03:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884930#M771090</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-25T03:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884931#M771091</link>
      <description>Please help... no suggestions????</description>
      <pubDate>Thu, 26 Oct 2006 09:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884931#M771091</guid>
      <dc:creator>Stefan.yu</dc:creator>
      <dc:date>2006-10-26T09:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884932#M771092</link>
      <description>from a previous post in this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;In other words, The body of the message have to appear in bold, blue, underlined and an attachment should be linked.&lt;BR /&gt;I know that:&lt;BR /&gt;1/ cat /tmp/mail.html | /usr/lib/sendmail -t "myname@mydomain.com" gives me the correct html format in the body&lt;BR /&gt;2/ uuencode file.xls file.xls | /usr/lib/sendmail -t "myname@mydomain.com"&lt;BR /&gt;gives me an attchment in my mail&lt;BR /&gt;&lt;END quote=""&gt;&lt;BR /&gt;&lt;BR /&gt;This implies that you can, instead do:&lt;BR /&gt;&lt;BR /&gt;1) uuencode file.xls file.xls &amp;gt; /tmp/attached.file&lt;BR /&gt;2) cat /tmp/mail.htlm /tmp/attached.file | /usr/lib/sendmail -t ......&lt;BR /&gt;&lt;BR /&gt;give that a try and see how it goes.....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/END&gt;&lt;/QUOTE&gt;</description>
      <pubDate>Thu, 26 Oct 2006 09:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884932#M771092</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-10-26T09:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: HTML + attachment in the same mail</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884933#M771093</link>
      <description>Okay,&lt;BR /&gt;&lt;BR /&gt;I tested this w/ Lotus Notes, result is the body displays the html doc and it has the xls sheet as an attachment, which is I believe what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo 'MIME-Version: 1.0' &amp;gt; somefile.out&lt;BR /&gt;echo 'Content-Type: multipart/mixed; boundary="abcdefgabcdefg"' &amp;gt;&amp;gt; somefile.out&lt;BR /&gt;echo '--abcdefgabcdefg' &amp;gt;&amp;gt; somefile.out &lt;BR /&gt;echo 'Content-Type: text/html; charset=us-ascii' &amp;gt;&amp;gt; somefile.out&lt;BR /&gt;cat your.html &amp;gt;&amp;gt; somefile.out&lt;BR /&gt;echo '--abcdefgabcdefg' &amp;gt;&amp;gt; somefile.out&lt;BR /&gt;uuencode some.xls some.xls &amp;gt; somefile.out&lt;BR /&gt;&lt;BR /&gt;cat somefile.out | sendmail -t your.name@yourmail.com</description>
      <pubDate>Thu, 26 Oct 2006 15:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/html-attachment-in-the-same-mail/m-p/3884933#M771093</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-10-26T15:15:07Z</dc:date>
    </item>
  </channel>
</rss>

