How to – Send mail with Google SMTP – Ubuntu 14.04

I am gonna show how you can send mail with Google SMTP in a few steps on your Ubuntu 14.04 LTS Server or any Debian systems

Step 1. Install SMTP
run the command in your terminal

Step 2. Configure SMTP
We are gonna open the SMTP config file and add the content below to the file.

Open config file and paste the content in the end line

 

Step 2. Test SMTP
to test our SMTP we are gonna download  send mail client

try to send a mail with this command

 

 

  • Jenny Jin

    It works! But the sender name is displayed as the account name I am under on Ubuntu, not the name I want to show on the email. Is there a workaround to use the default display name for the sender?

    • Hello Kenny.
      I am not with a computer right now but try to look after a line in the config file there is called mailFrom= and insert the alias here.

      You will proberbly have to remove the # from the line aswell. And then restart the server.