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

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



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"


-- 
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 



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