#330 ✓resolved
Imran

Gmail email doesn't work by default

Reported by Imran | September 8th, 2011 @ 08:23 PM | in 2.0.1 (closed)

In config.php I have:

define("SMTP_SERVER",'smtp.gmail.com');
define("SMTP_PORT",'465');
define("SMTP_AUTHTYPE",'LOGIN');
define("SMTP_USERNAME",'myemail@gmail.com');
define("SMTP_PASSWORD",'******');

It does not work, debugging lead me to the solution, in framework/core/subsystems/expMail.php line 142 replace:

$this->transport = Swift_SmtpTransport::newInstance(SMTP_SERVER, SMTP_PORT)

with:

$this->transport = Swift_SmtpTransport::newInstance(SMTP_SERVER, SMTP_PORT, "ssl")

It appears with the move to Swift-4, the SMTP_AUTHTYPE constant is unused. This is why it doesn't work by default.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Tags

Pages