Setting the from address field when sending command line e-mail
To set the from address field when sending mail from the command line in linux use the following syntax:-
The trick is that after the e-mail you want to send it to you add -- (double dash) (space) (single dash) (NO space) f
Example:-
orI've been trying to find out how to specify the from field in email for ages. Some people in forums even claimed that this cannot be done. (Hint: Never believe every word people write). Finally I found this post that outlined a quirk in the mail program that allows you to specify sendmail parameters in the command line. The man documentation in my RedHat Linux distribution doesn't even mention the possibility of specifying sendmail parameters.
Logon
Fill out the form below to logon to this site, or sign up below.
Signup
Fill out the form below to join as a member of this site.


