Need help with gmail smtp settings for sending on ver 3.0.10

Questions & Problems about Installing or Upgrading with Version 3 phpList.
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Need help with gmail smtp settings for sending on ver 3.0.10

Postby shankscomp » 4:33pm, Mon 24 Nov, 2014

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
shankscomp
phpList newbie
 
Posts: 3
Joined: 4:23pm, Mon 24 Nov, 2014

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

Postby Dragonrider » 7:11pm, Mon 24 Nov, 2014

This topic, although based on version 2 of phpList may help. A lot of the advice is just as valid for version 3
My sites:- http://wharfedalefestival.co.uk, http://ilkleygardeners.org.uk, http://emergencyaid.net, http://dragonrider.co.uk
Latest phpList version is now 3.0.12 (3 February 2015) and requires a minimum of MySQL 5.0 and PHP 5.3.x
Dragonrider
Moderator
 
Posts: 3460
Joined: 6:58am, Sun 02 Jul, 2006
Location: Ilkley, West Yorkshire, United Kingdom

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

Postby shankscomp » 7:43pm, Mon 24 Nov, 2014

I did follow thru the steps...

The error I keep getting is "SMTP connect() failed."
shankscomp
phpList newbie
 
Posts: 3
Joined: 4:23pm, Mon 24 Nov, 2014

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

Postby duncanc » 8:04pm, Mon 24 Nov, 2014

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);
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

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

Postby shankscomp » 10:12pm, Mon 24 Nov, 2014

still getting SMTP Connect() failed!

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

Any other ideas?
shankscomp
phpList newbie
 
Posts: 3
Joined: 4:23pm, Mon 24 Nov, 2014

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

Postby duncanc » 10:21pm, Mon 24 Nov, 2014

Possibly port 465 is not open. Check with your hosting company or whoever manages the server.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Installing and Upgrading

Who is online

Users browsing this forum: No registered users and 4 guests

cron