Return to Snippet

Revision: 38143
at December 26, 2010 21:27 by takel


Initial Code
sudo apt-get install ssmtp
sudo geany /etc/ssmtp/ssmtp.conf

Paste to config
---------------
hostname=ubuntu
[email protected]
AuthPass=password
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES

sudo geany /etc/php5/apache2/php.ini

Paste this to php.ini
---------------------
sendmail_path = /usr/sbin/ssmtp -t

To verify if the server is sending emails, send a test email:
-------------------------------------------------------------
ssmtp [email protected]

You can check if the email are sent by running the following in a second terminal (ALT+F2):
------------------------------------------------------------------------------------------
tail -f /var/log/mail.log

Initial URL

                                

Initial Description

                                

Initial Title
Sending emails from localhost with SSMTP

Initial Tags
mail, ubuntu

Initial Language
Other