Gentoo Archives: gentoo-user

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Help with Script that sends out HTML emails [SOLVED]
Date: Fri, 16 Sep 2005 01:20:24
Message-Id: 1126833258.13180.10.camel@neuromancer.home.net
In Reply to: Re: [gentoo-user] Help with Script that sends out HTML emails by Willie Wong
1 On Thu, 2005-09-15 at 20:47 -0400, Willie Wong wrote:
2 > On Fri, Sep 16, 2005 at 07:07:23AM +0800, Ow Mun Heng wrote:
3 > > Hi,
4 > >
5 > > I'm writing a bash script that basically checks for stocks prices and I
6 > > want the formatted output to be mailed to me. I've got the script
7 > > working already. The only problem is the HTML is well, not displayed as
8 > > HTML, it's displayed RAW(and not formatted).
9 > >
10 > > I'm using cron to send the email out.
11 > >
12 >
13 > Try using the mail command....
14 >
15 > behold the power of google:
16
17 I did, but obviously searching for "bash script + email + HTML + format"
18 doesn't yield anything since it can't be done(?)
19
20 >
21 > http://www.debian-administration.org/articles/171
22 >
23 > to put it simply:
24 >
25 > mail -a "Content-type: text/html;" -s "Your Daily Stock Quote" you@××××××.com < filename.html
26
27 I tried that. It worked perfectly. Only thing now, I'll have to hack the
28 script to put the output into a file and send our the file instead of
29 using cron.
30
31 Should be a simple thing.
32
33 Thanks.
34
35 >
36 > HTH
37 >
38 > W
39 > --
40 > I know that there are people in this world
41 > who do not love their fellow man,
42 > and I HATE people like that. -- Tom Lehrer
43 > Sortir en Pantoufles: up 35 days, 3:49
44
45 --
46 Ow Mun Heng
47 Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
48 98% Microsoft(tm) Free!!
49 Neuromancer 09:14:16 up 2 days, 21:48, 7 users, load average: 1.55,
50 1.10, 2.36
51
52
53 --
54 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Help with Script that sends out HTML emails [SOLVED] John Jolet <john@×××××.net>