Send Email From linux terminal using SSMTP

How to send email from the terminal using 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
  • Enter the email address of the person who will receive your email:ssmtp recepient_name@gmail.com
  • Now enter this:
    To: recipient_name@gmail.com
    From: username@gmail.com
    Subject: Sent from a terminal!
  • To send the email: Ctrl + D
Print Friendly, PDF & Email

More Like This


Categories


Ubuntu / Mint
  • Post a comment