Re: Help with Script that sends out HTML emails [NOT-SOLVED-Agn]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-09-16 at 09:40 +0800, Ow Mun Heng wrote:
> 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=iso-8859-1"
> > >         echo "<HTML><HEAD><TITLE>Stock Quotes :" $DATE "</TITLE></HEAD>"
> 
> > 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"

Okay.. for some reason, FC3's version of mailx (8.1.33) does not have
the "-a" option to mail.

Any other ideas?

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 20:43:54 up 1 day, 43 min, 3 users, load average: 0.49,
0.43, 0.63 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux