Link to home
Start Free TrialLog in
Avatar of vitali
vitali

asked on

Sending E-MAIL with the attachment by single command usin mail utility

Could anyone share the working example of
how to send e-mail with the attachment in Linix environment,
let's say I have to send e-mail by single command executed as part of the bash shell script.

Thanks all.
Vitali
ASKER CERTIFIED SOLUTION
Avatar of stefan73
stefan73
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
echo 'message' | mutt -a file -s 'subject' recipient

To send a MIME encoded attachment