Page 1 of 1

Need help with gmail smtp settings for sending on ver 3.0.10

PostPosted: 4:33pm, Mon 24 Nov, 2014
by shankscomp
Been fighting to get phplist to send out thru my gmail account. Please advise what I need to set.

below is the code from config.php
Code: Select all
define("PHPMAILER",1);
define("PHPMAILERHOST",'smtp.gmail.com');

# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = 'EMAIL@gmail.com';
$phpmailer_smtppassword = 'PASSWORD';
$phpmailer_smtpport = '465';
$phpmailer_smtpsecure= 'ssl';
$phpmailer_secure= 'ssl';


Also added to class.phplistmailer.php
Code: Select all
          $this->SMTPSecure = $GLOBALS['phpmailer_smtpsecure'];
$this->Port = $GLOBALS['phpmailer_smtpport'];


In class.smtp.php I added:
Code: Select all
            $this->smtp_conn = fsockopen(
//                $host,
      $host='ssl://smtp.gmail.com',


NONE of these changes seem to help. I also went into gmail at https://support.google.com/accounts/answer/6010255 and told it to allow less secure connection to the account.

Please advise what else I need to change.
Thanks
Tim

Re: Need help with gmail smtp settings for sending on ver 3.

PostPosted: 7:11pm, Mon 24 Nov, 2014
by Dragonrider
This topic, although based on version 2 of phpList may help. A lot of the advice is just as valid for version 3

Re: Need help with gmail smtp settings for sending on ver 3.

PostPosted: 7:43pm, Mon 24 Nov, 2014
by shankscomp
I did follow thru the steps...

The error I keep getting is "SMTP connect() failed."

Re: Need help with gmail smtp settings for sending on ver 3.

PostPosted: 8:04pm, Mon 24 Nov, 2014
by duncanc
For phplist 3 you need only to set the values in config.php. No code changes are needed. These settings work for me

Code: Select all
define("PHPMAILERHOST",'smtp.gmail.com');
$phpmailer_smtpuser = 'xxx@gmail.com';
$phpmailer_smtppassword = 'xxxx';
define('PHPMAILER_SECURE', 'ssl');
define('PHPMAILERPORT', 465);

Re: Need help with gmail smtp settings for sending on ver 3.

PostPosted: 10:12pm, Mon 24 Nov, 2014
by shankscomp
still getting SMTP Connect() failed!

I even changed my gmail password so I didn't have a # sign in it.

Any other ideas?

Re: Need help with gmail smtp settings for sending on ver 3.

PostPosted: 10:21pm, Mon 24 Nov, 2014
by duncanc
Possibly port 465 is not open. Check with your hosting company or whoever manages the server.