Quantcast
Channel: How to send mail from the command line? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 18

Answer by One Zero for How to send mail from the command line?

$
0
0

You need an MTA to send mail. For this, use postfix:

sudo apt-get install postfix

To send email:

echo "test message" | mailx -s 'test subject' myemail@mydomain.com

HELP


Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>