Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-20 Thread Nick Rout
On Sat, 2005-09-17 at 08:56 +0800, Ow Mun Heng wrote: mail -a Content-type: text/html; -s Your Daily Stock Quote [EMAIL PROTECTED] filename.html I have another problem now. for some reason, the system I was developing for (FC3), the mail command does not have a -a option. I'm

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

2005-09-19 Thread Ow Mun Heng
On Sun, 2005-09-18 at 22:36 -0500, John Jolet wrote: On Sunday 18 September 2005 22:11, A. Khattri wrote: On Mon, 19 Sep 2005, Ow Mun Heng wrote: Be that as it may, I'm not Perl person (picked up the book, but haven't really progressed anywhere hehe). But.. when push comes to

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

2005-09-19 Thread A. Khattri
On Tue, 20 Sep 2005, Ow Mun Heng wrote: I did it, didn't have to go through perl. Just added a mail_header() to my script. mail_header() { echo MIME-Version:1.0 echo From:[EMAIL PROTECTED] echo To:$RECIPIENT echo Subject:Quotes $DATE echo

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

2005-09-19 Thread Ow Mun Heng
On Tue, 2005-09-20 at 01:23 -0400, A. Khattri wrote: On Tue, 20 Sep 2005, Ow Mun Heng wrote: I did it, didn't have to go through perl. Just added a mail_header() to my script. #!/bin/sh # TEMPFILE=/tmp/file.$$ PORTFOLIO_SCRIPT=$HOME/scripts/portfolio.sh $PORTFOLIO_SCRIPT --html

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-18 Thread Ow Mun Heng
On Sat, 2005-09-17 at 01:15 -0400, A. Khattri wrote: On Sat, 17 Sep 2005, Ow Mun Heng wrote: I have another problem now. for some reason, the system I was developing for (FC3), the mail command does not have a -a option. I'm still searching for the correct mail 'version' in fc3. Anyone

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-18 Thread A. Khattri
On Mon, 19 Sep 2005, Ow Mun Heng wrote: Be that as it may, I'm not Perl person (picked up the book, but haven't really progressed anywhere hehe). But.. when push comes to shove Im assuming there is probably a CPAN module that does most of this for you - this is why I think Perl might be

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-18 Thread John Jolet
On Sunday 18 September 2005 22:11, A. Khattri wrote: On Mon, 19 Sep 2005, Ow Mun Heng wrote: Be that as it may, I'm not Perl person (picked up the book, but haven't really progressed anywhere hehe). But.. when push comes to shove Im assuming there is probably a CPAN module that

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-16 Thread Ow Mun Heng
On Thu, 2005-09-15 at 20:47 -0400, Willie Wong wrote: On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote: 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

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-16 Thread A. Khattri
On Sat, 17 Sep 2005, Ow Mun Heng wrote: I have another problem now. for some reason, the system I was developing for (FC3), the mail command does not have a -a option. I'm still searching for the correct mail 'version' in fc3. Anyone else has any more suggestions? Unless you're prepared to

[gentoo-user] Help with Script that sends out HTML emails

2005-09-15 Thread Ow Mun Heng
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

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-15 Thread Mike Williams
On Friday 16 September 2005 00:07, Ow Mun Heng wrote: 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

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-15 Thread Nick Rout
It seems to me that you need a couple of other things: 1. a look at a couple of the html emails in my inbox show a mail header (ie part of the email where stuff like from, to and subject go) like this: MIME-Version: 1.0 Content-Type: multipart/alternative;

Re: [gentoo-user] Help with Script that sends out HTML emails

2005-09-15 Thread Willie Wong
On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote: 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

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

2005-09-15 Thread Ow Mun Heng
On Thu, 2005-09-15 at 20:47 -0400, Willie Wong wrote: On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote: 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

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

2005-09-15 Thread John Jolet
On Sep 15, 2005, at 8:14 PM, Ow Mun Heng wrote: On Thu, 2005-09-15 at 20:47 -0400, Willie Wong wrote: On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote: Hi, I'm writing a bash script that basically checks for stocks prices and I want the formatted output to be mailed to

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

2005-09-15 Thread Ow Mun Heng
On Thu, 2005-09-15 at 20:30 -0500, John Jolet wrote: On Sep 15, 2005, at 8:14 PM, Ow Mun Heng wrote: On Thu, 2005-09-15 at 20:47 -0400, Willie Wong wrote: On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote: Hi, I'm writing a bash script that basically checks for

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

2005-09-15 Thread Nick Rout
On Fri, 16 Sep 2005 09:43:50 +0800 Ow Mun Heng wrote: That's what I just did.. $ cat cron_fetch_stock.sh #!/bin/bash # TEMPFILE=/tmp/file.$$ PORTFOLIO_SCRIPT=$HOME/scripts/portfolio.sh $PORTFOLIO_SCRIPT --html $TEMPFILE 2/dev/null1 mail -a Content-Type: text/html -s Stock Quotes