How to configure phplist to use Gmail SMTP Server?

user3386733 picture user3386733 · Mar 10, 2014 · Viewed 7.2k times · Source

Anyone know how to configure phplist to use Gmail SMTP server?

Any advise? Thanks a lot for advice in advance

Answer

Snapper67 picture Snapper67 · Oct 5, 2014

Based on this page https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps

I added the following to my config.php.

define("PHPMAILERHOST",'smtp.gmail.com');
$phpmailer_smtpuser = '[email protected]';
$phpmailer_smtppassword = 'password';
define('PHPMAILERPORT','587');
define("PHPMAILER_SECURE",'tls');

No other changes were needed.
I did get a warning from Google that an attempt was made to access to my account and it was blocked. I had to follow the steps to allow the connection. https://support.google.com/accounts/answer/6010255