Re: idiot requires email help

2000-04-14 Thread Stefan `Sec` Zehl

On Thu, Apr 13, 2000 at 08:31:55PM +, rex wrote:
> On Thu, Apr 13, 2000 at 02:51:19PM -0400, David T-G wrote:
> > 
> > ...and then Belinda Roussel said...
> > % I need to send an html web page on Unix and I don't know how to. Could
> > % anyone please give me some guidance or direct me to a helpful web site
> > 
> > Although this is the list for users of, and questions specifically
> > pertaining to, the mutt mail program, perhaps someone can be of help.
> 
> She wants to periodically and automatically mail a web page from *nix
> to a Netscape user and have it appear as HTML, not as raw ASCII. I
> suggested:
> 
>   You can MIME encode and send from the command line with Mutt:
> 
>   mutt -s "daily data" -a ~/data.html [EMAIL PROTECTED] < ~/boilerplate_text
> 
>   "data.html" is the HTML formatted file, "boilerplate_text" is any file 
>   (to make mutt happy), and "[EMAIL PROTECTED]" is the recipient address . 

I don't understand why people insist on sending automatic mails with
mutt. It's a nice MUA and all, but for simply sending a single
MIMEencoded file with a content-type other than text/plain it's simply
the wrong tool.

I suggest using metasend from the metmail package. Sending a single file
is as simple as this:

metasend -D "Description" -e base64 -m "image/gif" -f "file_to_send" \
 -s "Mail_Subject" -S 100 -b -t [EMAIL PROTECTED]

for non-binary data use "quoted-printable" or "7bit" instead of base64.

> It seems to work, though there may be better ways. 

I think so. I used mutt some time ago, but I got annoyed by that extra
text/plain part that mutt required to be present.

CU,
Sec
-- 
"Computers make very fast, very accurate, mistakes."



Re: idiot requires email help (just a note)

2000-04-13 Thread Martin Macok

On Thu, Apr 13, 2000 at 08:31:55PM +, rex wrote:
> > ...and then Belinda Roussel said...
> > % I need to send an html web page on Unix and I don't know how to. Could
> > % anyone please give me some guidance or direct me to a helpful web site
> 
> She wants to periodically and automatically mail a web page from *nix
> to a Netscape user and have it appear as HTML, not as raw ASCII. I
> suggested:
> 
>   You can MIME encode and send from the command line with Mutt:
> 
>   mutt -s "daily data" -a ~/data.html [EMAIL PROTECTED] < ~/boilerplate_text
> 
>   "data.html" is the HTML formatted file, "boilerplate_text" is any file 
>   (to make mutt happy), and "[EMAIL PROTECTED]" is the recipient address . 

If the web page is not directly on disk, f.e. it's dynamically generated
by webserver, you could use something similar:

wget http://web.server.com/somedir/somefile.html
mutt -s "daily data" -a somefile.html [EMAIL PROTECTED] <~/boilerplate_text

... and automate it through user crontab (see "man crontab")

-- 
< Martin Mačok[EMAIL PROTECTED]
  \\  http://kocour.ms.mff.cuni.cz/~macok/  http://underground.cz/  //
\\\ -=  t.r.u.s.t  n.0  o.n.e  =-///



Re: idiot requires email help

2000-04-13 Thread rex


On Thu, Apr 13, 2000 at 02:51:19PM -0400, David T-G wrote:
> 
> ...and then Belinda Roussel said...
> % I need to send an html web page on Unix and I don't know how to. Could
> % anyone please give me some guidance or direct me to a helpful web site
> 
> Although this is the list for users of, and questions specifically
> pertaining to, the mutt mail program, perhaps someone can be of help.

She wants to periodically and automatically mail a web page from *nix
to a Netscape user and have it appear as HTML, not as raw ASCII. I
suggested:

  You can MIME encode and send from the command line with Mutt:

  mutt -s "daily data" -a ~/data.html [EMAIL PROTECTED] < ~/boilerplate_text

  "data.html" is the HTML formatted file, "boilerplate_text" is any file 
  (to make mutt happy), and "[EMAIL PROTECTED]" is the recipient address . 

  You can create a shell script that will issue this command periodically
  using cron.

It seems to work, though there may be better ways. 

-rex

-- 
"They have computers, and they may have other weapons of mass
  destruction." --Janet Reno, US Attorney General, 2.27.98






Re: idiot requires email help

2000-04-13 Thread David T-G

Belinda --

...and then Belinda Roussel said...
% I need to send an html web page on Unix and I don't know how to. Could
% anyone please give me some guidance or direct me to a helpful web site

Although this is the list for users of, and questions specifically
pertaining to, the mutt mail program, perhaps someone can be of help.
If the question is mutt-specific, like trying to figure out how to read
an html-formatted email with mutt, then send more details here; if not,
feel free to send more details to me directly.  In either case, we'll
need some more info before tackling your problem.


% before my boss starts getting annoyed with me :-(

Well, we wouldn't want that :-)


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


idiot requires email help

2000-04-11 Thread Belinda Roussel

I need to send an html web page on Unix and I don't know how to. Could
anyone please give me some guidance or direct me to a helpful web site
before my boss starts getting annoyed with me :-(