Thursday, April 16, 2009

SSMTP - sending email from terminal

I just installing this application to sent email from command line/ terminal, it's call ssmtp. For ubuntu/ debian distro, you can trigger this command:
# sudo apt-get install ssmtp

After that you can edit /etc/ssmtp/ssmtp.conf:
AuthUser=[email address]
AuthPass=[email password]
mailhub=[smtp server]:[port]

And you can test it by typing this simple script:
$ echo "This is a test" | ssmtp -s "Test" [destination email address]

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)