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

Re: how to mail an attachment from a script



On Sat, Sep 15, 2001 at 10:35:41PM -0400, dman wrote:
> On Sat, Sep 15, 2001 at 05:43:29PM -0700, Alvin Oga wrote:
> | 
> | hi sean
> | 
> | to send an attachment via cron or any script
> | 
> | create the attachment...say /tmp/a.html
> | 
> | echo "this is a  text msg and attachment " |
> | 	 mutt -s "Testing attachment=a.html" -a /tmp/a.html 
> | 
> | a.html can be foo.jpg too and i think it did the "right thing"...
> 
> Yeah, but mutt isn't on that system :-(.  Thanks anyways.
apt-get install mutt
will fix it ;-)

You can also do it with the mime tools by hand.

Sven

-- 
Sven Hoexter Earth - Germany - Leverkusen -=|=-  e-mail: sven@telelev.net
http://polarbear.telelev.net/cgi-bin/codered.cgi
One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them



Reply to: