frome the excellent post of http://askubuntu.com/questions/12917/how-to-send-mail-from-the-command-line
- Edit the ssmtp config file :
gksu gedit /etc/ssmtp/ssmtp.conf
- Enter this in the file:
root=username@gmail.com
mailhub=smtp.gmail.com:465
rewriteDomain=gmail.com
AuthUser=username
AuthPass=password
FromLineOverride=YES
UseTLS=YESyou can then usemutt or mailx to send your emails from command line
No comments:
Post a Comment