Hi,
I've been having some issues sending out automated emails through G-Mails SMTP settings. I have been back and forward with Google for quite some time now and they are very adamant that the setup is correct on their end (2-Step Auth, Less Secure Apps etc) along with my PHP file being setup correctly too (see screenshot, password removed and email changed).
Attached to this thread is my PHP File setup along with errors from the exim_mainlog that show the connection being refused by localhost.
PHP Setup:
[removed - please attach images directly to the thread]
exim_mainlog error (email changed & IP replaced with [xx.xx.xx.xx]:xxxxx):
I'm completely stumped on what to do next - I've tried a lot of different methods as instructed by Google's Support but to no avail.
This is the specific error message I get when running the PHP file in my browser;
authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]
I know the credentials I'm using are a proper email address (not an alias), it is under G-Suite and the password is the correct App Password.
Something the Google Support member said which stands out was
I've been having some issues sending out automated emails through G-Mails SMTP settings. I have been back and forward with Google for quite some time now and they are very adamant that the setup is correct on their end (2-Step Auth, Less Secure Apps etc) along with my PHP file being setup correctly too (see screenshot, password removed and email changed).
Attached to this thread is my PHP File setup along with errors from the exim_mainlog that show the connection being refused by localhost.
PHP Setup:
[removed - please attach images directly to the thread]
exim_mainlog error (email changed & IP replaced with [xx.xx.xx.xx]:xxxxx):
Code:
2019-01-30 13:58:40 SMTP connection from [xx.xx.xx.xx]:xxxxx (TCP/IP connection count = 1)
2019-01-30 13:58:42 dovecot_login authenticator failed for (localhost) [xx.xx.xx.xx]:xxxxx: 535 Incorrect authentication data ([email protected])
2019-01-30 13:58:42 SMTP connection from (localhost) [xx.xx.xx.xx]:xxxxx closed by QUIT
2019-01-30 13:58:42 SMTP connection from [127.0.0.1]:xxxxx (TCP/IP connection count = 1)
2019-01-30 13:58:42 SMTP connection from (localhost) [127.0.0.1]:xxxxx closed by QUIT
This is the specific error message I get when running the PHP file in my browser;
authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]
Something the Google Support member said which stands out was
"I can tell for sure what what I see that you need to allow the server on your end/local host to make the authentication using the credentials of the added settings and not the one of the Cpanel or account added on the local host."
If anyone has any idea on what to do next, that'd be great - please don't hesitate to ask me for more information.
Last edited by a moderator: