Send email attachment using a shell script
fedora at ows.ch
Thu Jul 14 11:20:09 UTC 2005
Alexander Dalloz wrote:
>Am Do, den 14.07.2005 schrieb Hany Nagaty um 12:09:
>>I'd like to send an email containing an attachmnet using a script.
>>I've tried the mail command (in the mailx package), but I don't know
>>how can I use it to send an attachment.
>>So, is there a way I can use mail to send an attachment, or is there
>>other utility to do the job.
>uuencode foo.gif /dev/stdout | mail -s "my subject line"
>recipient at target.tld
>uuencode part of the sharutils rpm.
make your choice :
I ve been using metamail / metasend for years now, simply the best
solution to send any kind of attachements with lots of diff options
for body, file structure, size ....
A good example of how it works using those 2 scripts :
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users