beer9
asked on
How to attach a file while sending email via mailx or mail?
I would like to attach a file while sending a email via a command line option in a bash script which is getting executed via cron every hour. Please let me know if there is a way to achieve this. Thanks!
ASKER
How Can I use 'mutt' for sending email with attachment :-)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I am not sue which uuencode you are going to use, but the one in the script is using
--base64
which might not be supported in your version
--base64
which might not be supported in your version
You can add 8bit also. 99% of internet is able to cope with that.
Why not let 'mutt' do the job? And it's a fine mail client compared to 'mailx', btw.
mutt for Solaris 10 -
ftp://ftp.sunfreeware.com/ pub/freewa re/sparc/1 0/mutt-1.5 .19-sol10- sparc-loca l.gz
mutt for Solaris 10 -
ftp://ftp.sunfreeware.com/
ASKER
Thank you :-)
unfortunately it is not possible to send email attachments using the command line of mail or ¤ailx.
I'd suggest using 'mutt' instead.
Wmp