Sep 21, 2018

Mailx simple example

It is very convenient to send email from command line using mailx

# echo "this is the body of the email" | mailx -vvv -s "test mail" -r "From" -S smtp="your-smtp" [email protected]


-vvv =         Verbosity.
-s =         Specifies the subject.
-r =         Email sent from.
-S =         Specifies the smtp server.