Forum Discussion
Nicolas
Nimbostratus
Jul 31, 2017change from address in mail command
Hey All,
I've wrote a script that in one part it send email using the following command
mail -s "subject" recipient@xxx.xxx
I want to know how can I change the sender by default it t...
Jad_Tabbara__J1
Cirrostratus
Jul 31, 2017Hello Nicolas,
Try using the -r argument
-r address
Sets the From address. Overrides any from variable specified in environment or startup files. Tilde escapes are disabled. The -r address options are passed to the mail transfer agent unless SMTP is
used. This option exists for compatibility only; it is recommended to set the from variable directly instead.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
