From Ow.Mun.Heng at wdc.com Fri Jun 5 15:16:30 2015 Content-Type: multipart/mixed; boundary="===============3940536386422185123==" MIME-Version: 1.0 From: Ow Mun Heng To: users at lists.fedoraproject.org Subject: Re: Help with Script that sends out HTML emails [SOLVED] Date: Fri, 16 Sep 2005 09:40:14 +0800 Message-ID: <1126834815.13180.15.camel@neuromancer.home.net> In-Reply-To: cone.1126832563.475034.7718.500@commodore.email-scan.com --===============3940536386422185123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2005-09-15 at 21:02 -0400, Sam Varshavchik wrote: > Ow Mun Heng writes: > = > > Hi, > > = > > I'm writing a bash script that basically checks for stocks > > prices and I > > want the formatted output to be mailed to me. I've got the script > > working already. The only problem is the HTML is well, not displayed as > > HTML, it's displayed RAW(and not formatted). > > = > > I'm using cron to send the email out. > > = > > I've even put the echo statement : > > = > > html_header() > > { > > echo "Content-Type: text/html; charset=3Diso-8859-1" > > echo "Stock Quotes :" $DATE "" > There are at least two structural problems with your message. > = > 1) There is no blank line that separates mail headers from body. > = > 2) The Mime-Version: header is missing. I think I've tried that as well. The Mime-Version gets appended automatically. Even doing an uuencode and sending the resultant file doesn't have it as an attachment. In any case, it's solved using = mail -a "Content-Type: text/html" -- = Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! = Neuromancer 09:36:35 up 2 days, 22:11, 8 users, load average: 1.87, 0.85, 1.16 = --===============3940536386422185123==--