PHP sending email via gmail

apt-get install msmtp
add gmail account to /etc/msmtp
vi php.ini
 
sendmail_path = "/usr/bin/msmtp --logfile /var/log/msmtp_php/msmtp-php-cli.log -a gmail -t"

Leave a Reply