Use GMail to send emails through the Linux consolse

Saturday, July 28, 2012 10:09

If you need to be able to send simple, one user account emails from a Linux server which has no mail server configured then this is for you.

Additionally you can use GMail to send messages from.

Install software:

# apt-get update

# apt-get install ssmtp

Edit configuration file:

#nano /etc/ssmtp/ssmtp.conf


# echo “email test” | mail -s “Email test” myemailaddress@domain.tld

You can leave a response, or trackback from your own site.

Leave a Reply

Connect with Facebook