Friday, February 10, 2012

modify FROM: header with mail command

mail -s "This is your Subject" recipient@example.com -- -F sender_name -f sender_username@yourexample.com

The trick here is to pass -- to the mail command so you can set sendmail options to it.

0 comments: