Send mail from command line from specific email address
In an email, from is set in the header. To set FROM in any email sent through the mail command, here is the syntax
echo 'Mail body' | \ mail -s 'this is the email subject' -a 'From: sender@example.com' receiver@example.com


Comments
If you want to send a blank email with attachment with MIME
Nice tips
Thanks
Post new comment