<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Send HTML formatted mail from Unix using Sendmail</title>
	<atom:link href="http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sun, 22 Nov 2009 00:56:44 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cool</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-12154</link>
		<dc:creator>cool</dc:creator>
		<pubDate>Fri, 05 Jun 2009 16:16:15 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12154</guid>
		<description>HTML emails are cool!</description>
		<content:encoded><![CDATA[<p>HTML emails are cool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-2709</link>
		<dc:creator></dc:creator>
		<pubDate>Tue, 21 Feb 2006 06:47:42 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2709</guid>
		<description>Hi 

I am new to this forum and have been battling with HTML formatting of e-mails.  I have used the options on this thread,  and they work OK,  now I need to be able to send PDF attachments as well.

I am currently using sendmail to send HTML formatted e-mails as follows :
(cat body.txt) &#124; sendmail -t recipient

I use mail to send non-HTML formatted e-mail bodies with PDF attachments as follows :

(cat body.txt;uuencode attach1.pdf attach1.pdf ;uuencode attach2.pdf attach2.pdf ) &#124; mail -sSubject  recipient

sendmail works fine but will not send the attachment
mail works fine but will not allow HTML formatted body.

Please Help</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I am new to this forum and have been battling with HTML formatting of e-mails.  I have used the options on this thread,  and they work OK,  now I need to be able to send PDF attachments as well.</p>
<p>I am currently using sendmail to send HTML formatted e-mails as follows :<br />
(cat body.txt) | sendmail -t recipient</p>
<p>I use mail to send non-HTML formatted e-mail bodies with PDF attachments as follows :</p>
<p>(cat body.txt;uuencode attach1.pdf attach1.pdf ;uuencode attach2.pdf attach2.pdf ) | mail -sSubject  recipient</p>
<p>sendmail works fine but will not send the attachment<br />
mail works fine but will not allow HTML formatted body.</p>
<p>Please Help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qmchenry</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-2383</link>
		<dc:creator>qmchenry</dc:creator>
		<pubDate>Thu, 01 Dec 2005 19:35:51 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2383</guid>
		<description>I tried to find a definitive reference out there on the boundary string, but couldn&#039;t.  In some &lt;a href=&quot;http://www.ietf.org/rfc/rfc2387.txt&quot;&gt;IETF documents on MIME&lt;/a&gt; they use &lt;strong&gt;Content-Type: Multipart/Related; boundary=example-1&lt;/strong&gt;.  To my knowledge, it only needs to be unique within the email and probably only exists to allow multiple boundaries in an email.</description>
		<content:encoded><![CDATA[<p>I tried to find a definitive reference out there on the boundary string, but couldn&#8217;t.  In some <a href="http://www.ietf.org/rfc/rfc2387.txt">IETF documents on MIME</a> they use <strong>Content-Type: Multipart/Related; boundary=example-1</strong>.  To my knowledge, it only needs to be unique within the email and probably only exists to allow multiple boundaries in an email.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oldUnixGuy</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-2381</link>
		<dc:creator>oldUnixGuy</dc:creator>
		<pubDate>Thu, 01 Dec 2005 11:53:48 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2381</guid>
		<description>I had your script modified and working for me in a few minutes.  You saved me a fair amount of work.  The HTML even displays corretly in Lotus Notes.

I was looking for an alternate Unix mail client that would send HTML and while reading the Mutt docs noted that Mutt (like mail, mailx) is just a front end to sendmail.  The light came on and I Googled for &#039;unix sendmail html&#039; and your item came out at the top - right where it belongs.

Just curious, is there any significance to the make up of the &#039;boundary&#039; string?  I plugged in my own server name and it worked.  Does it just need to be a string that&#039;s random enough to be unique?</description>
		<content:encoded><![CDATA[<p>I had your script modified and working for me in a few minutes.  You saved me a fair amount of work.  The HTML even displays corretly in Lotus Notes.</p>
<p>I was looking for an alternate Unix mail client that would send HTML and while reading the Mutt docs noted that Mutt (like mail, mailx) is just a front end to sendmail.  The light came on and I Googled for &#8216;unix sendmail html&#8217; and your item came out at the top &#8211; right where it belongs.</p>
<p>Just curious, is there any significance to the make up of the &#8216;boundary&#8217; string?  I plugged in my own server name and it worked.  Does it just need to be a string that&#8217;s random enough to be unique?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scrunchy</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-2275</link>
		<dc:creator>Scrunchy</dc:creator>
		<pubDate>Wed, 09 Nov 2005 13:33:31 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-2275</guid>
		<description>Unlike that previous dweeb, I have some in-house uses for sending html-formatted mail from unix. Your solution works. Thanks very much.</description>
		<content:encoded><![CDATA[<p>Unlike that previous dweeb, I have some in-house uses for sending html-formatted mail from unix. Your solution works. Thanks very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-1163</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 27 Dec 2004 06:53:35 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-1163</guid>
		<description>HTML email sucks!</description>
		<content:encoded><![CDATA[<p>HTML email sucks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: braindonor</title>
		<link>http://www.tech-recipes.com/rx/768/send-html-formatted-mail-from-unix-using-sendmail/comment-page-1/#comment-1021</link>
		<dc:creator>braindonor</dc:creator>
		<pubDate>Fri, 12 Nov 2004 11:47:13 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-1021</guid>
		<description>The bottom half is actually HTML code...and the page seems to be displaying it as HTML, rather than just text.  Change the &quot;[&#039;s&quot; to &quot;&lt;&#039;s&quot; and the &quot;]&#039;s&quot; to &quot;&gt;&#039;s&quot; in the items below.

echo &quot;Content-Type: text/html&quot; 
echo &quot;&quot; 
echo &quot;[HTML] 
[BODY bgcolor=gray] 
[blockquote][font color=red]Test[/font] [font color=white]Message[/font] [font color=blue]Body[/font][/blockquote] 
[/body] 
[/html]&quot; 
echo &quot;--PAA08673.1018277622/server.domain.com&quot; 
) &#124; sendmail -t

Tom</description>
		<content:encoded><![CDATA[<p>The bottom half is actually HTML code&#8230;and the page seems to be displaying it as HTML, rather than just text.  Change the &#8220;['s" to "&lt;'s" and the "]&#8217;s&#8221; to &#8220;&gt;&#8217;s&#8221; in the items below.</p>
<p>echo &#8220;Content-Type: text/html&#8221;<br />
echo &#8220;&#8221;<br />
echo &#8220;[HTML]<br />
[BODY bgcolor=gray]<br />
[blockquote][font color=red]Test[/font] [font color=white]Message[/font] [font color=blue]Body[/font][/blockquote]<br />
[/body]<br />
[/html]&#8221;<br />
echo &#8220;&#8211;PAA08673.1018277622/server.domain.com&#8221;<br />
) | sendmail -t</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>
