Forum

Thread tagged as: Problem, Error, Forms

Anyone had issues with Gmail accounts and SMTP?

I have set up my latest site and this if the first client that uses a Gmail account e.g. @gmail.com. I've set up plenty Perch sites with SMTP and google apps and never had a problem however on my live server I keep getting "SMTP Error: Could not authenticate." in the Settings > Email test.

I've tried multiple tests and all of these work on the same site/server

  • change SMTP to a google apps account
  • ran a test with Mailtrap
  • all forms are going into the DB fine.

I tried the following settings

~~~

define('PERCH_EMAIL_METHOD', 'smtp'); define('PERCH_EMAIL_HOST', 'smtp.gmail.com'); define('PERCH_EMAIL_AUTH', true); define('PERCH_EMAIL_SECURE', 'ssl'); // also tried "tls" define('PERCH_EMAIL_PORT', 465); // also tried "587"

~~~

The only thing I can think of is that Gmail has changed the privileges or there is a setting I am missing on the free account.

Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you log into your Google account, do you get any security notices? It may be that you need to step down to a security mode that allows for SMTP from an 'unknown' server.