-->

Monday, March 18, 2013

command line emails from ubuntu

frome the excellent post of  http://askubuntu.com/questions/12917/how-to-send-mail-from-the-command-line


  • Install ssmtp Install ssmtpsudo apt-get install ssmtp
  • 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=YES

    you can then use 
    mutt or mailx to send your emails from command line

No comments:

Post a Comment