Gmail SMTP Setup

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
quinlan56
User
Posts: 3

Gmail SMTP Setup

Post by quinlan56 »

Having issues with v2022 trying to set up the SMTP setting for GMail.

I have tried with 2 different GMail account settings, but it just times out.

  • a personal GMail account, with an Account Password (2-Step Verification is On)
  • a Google Workspace account, with Allow less secure apps turned on

Any insights ?


arbei
User
Posts: 9288

Post by arbei »

You may search "gmail smtp" in this forum or google the same.


dquinlan
User
Posts: 27

Post by dquinlan »

Yes I gave dione that and followed all the suggestions and config requirements.

What ever I do I get

[2022-07-21T01:44:38.598104+00:00] log.DEBUG: 405 Method Not Allowed Type: Slim\Exception\HttpMethodNotAllowedException Code: 405 Message: Method not allowed. Must be one of: GET
File: /opt/bitnami/apache/htdocs/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php Line: 94


arbei
User
Posts: 9288

Post by arbei »

dquinlan wrote:

Method not allowed. Must be one of: GET

As the error said. You tried to POST to a script which does not accept POST.

You might be trying to use your own code to send email. You better post what you tried and your code for discusssion.


vuongduongquoc
User
Posts: 133

Post by vuongduongquoc »

You need to Turn OFF less secure apps.
It's working fine for me.
Smtp host: smtp.gmail.com
SSL/Port 465
Auto TLS on


sticcino
User
Posts: 1043

Post by sticcino »

I don't believe this works any longer ?. I read Gmail has shutdown these features down. I was using gmail for years then a month or so ago, it all came to a halt. Unless they changed a flag ?


vuongduongquoc
User
Posts: 133

Post by vuongduongquoc »

Google paid account works for me.
Turn on: Less secured app
smtp.gmail.com
Port: 587
Security: TLS


Post Reply