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

Re: Bash email attachment



On 2010-03-08T14:53:38, Raven wrote:
> /usr/bin/uuencode img.jpg img.jpg > attachment.txt
> cat hdr.txt body.txt attachment.txt > message.txt
> $SENDMAIL "-f" $4 "--" $2 <message.txt

If you do not need the full name then this would be easy way to 
mime encode the message:

mutt -a img.jpg -- $2 < message.txt 


/Allan
-- 
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>


Reply to: