Configuring WordPress to send email using Gmail on Debian

May 26, 2009 by Mark  
Filed under Linux, Tips & Tricks

1. Install ssmtp using the following command.

apt-get install ssmtp

2. Edit ssmtp.conf

nano /etc/ssmtp/ssmtp.conf

Now update or add the following configuration to the ssmtp.conf

mailhub=smtp.gmail.com:587
AuthUser=user@gmail.com
AuthPass=YourGmailPassword
FromLineOverride=YES
UseSTARTTLS=YES

You should replace user@gmail.com with your gmail email address.

Read more