Beantwoord

SMTP Error: Could not authenticate

  • 13 November 2015
  • 8 reacties
  • 1097 keer bekeken

Hi,

I have a contact form on my wordpress website which logs in with a gmail account and it forwards emails from the visitors to the main inbox

The SMTP debugging output is shown below:

2015-11-13 10:53:51 Connection: opening to ssl://smtp.gmail.com:587, timeout=300, options=array (
)
2015-11-13 10:53:51 SMTP ERROR: Failed to connect to server: (0)

Does anyone have a solution since this is a company website which needs to receive emails from customers.

Thank you!
icon

Beste antwoord door Tim 13 November 2015, 17:20

Bekijk origineel

8 reacties

Reputatie 7
Badge +11
Hello fr2632,

This problem is likely related to the Authentication process of Gmail. The SMTP server from Gmail requires authentication with an existing Gmail account. Try changing the port number or the security type.

Change the port to 465 or use TLS instead. More information can be found on the website of Wordpress:

https://wordpress.org/plugins/wp-mail-bank/

** Googlemail - Gmail SMTP Ports & Settings **



  • SMTP Server - Host : smtp.gmail.com - Secure (SSL) - Port 465
  • SMTP Server - Host : smtp.gmail.com - Secure (TLS) - Port 587

Hope this helps for you!
https:///t5/user/viewprofilepage/user-id/227 schreef op https:///t5/Stel-uw-vraag/SMTP-Error-Could-not-authenticate/m-p/5141#M154Hello fr2632,

This problem is likely related to the Authentication process of Gmail. The SMTP server from Gmail requires authentication with an existing Gmail account. Try changing the port number or the security type.

Change the port to 465 or use TLS instead. More information can be found on the website of Wordpress:
https://wordpress.org/plugins/wp-mail-bank/

** Googlemail - Gmail SMTP Ports & Settings **
  • SMTP Server - Host : smtp.gmail.com - Secure (SSL) - Port 465
  • SMTP Server - Host : smtp.gmail.com - Secure (TLS) - Port 587
Hope this helps for you!

 Thank you Tim for your answer. I have already tried to change ports and SSL or TLS but unfortunately still doesnt work. With the same credential I can access to the gmail account just fine.

The plugin you suggested gives just the same debugging output : 

2015-11-13 14:53:18 Connection: opening to ssl://smtp.gmail.com:587, timeout=300, options=array (
'ssl' =>
array (
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
),
)
2015-11-13 14:53:18 SMTP ERROR: Failed to connect to server: (0)
2015-11-13 14:53:18 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I am afraid that this is server side issue, some firewall or ports limitation.

Thank you
Reputatie 7
Badge +11
Hello fr2632,

The error reporting is very minimal. Is it possible to have a more detailed report by using something like 'SMTPDebug = 1'?

Also be sure you're using port 465 when using SSL and port 587 when trying TLS.
https:///t5/user/viewprofilepage/user-id/227 schreef op https:///t5/Stel-uw-vraag/SMTP-Error-Could-not-authenticate/m-p/5144#M156

Hello fr2632,

The error reporting is very minimal. Is it possible to have a more detailed report by using something like 'SMTPDebug = 1'?

Also be sure you're using port 465 when using SSL and port 587 when trying TLS.

 

Tim, I am sure. The following is a more detailed debugging: 

Test Message Sent


The result was:

bool(false)

2015-11-13 15:23:06 CLIENT -> SERVER: STARTTLS
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "220 2.0.0 Ready to start TLS
"
2015-11-13 15:23:06 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2015-11-13 15:23:06 CLIENT -> SERVER: EHLO www.tfc-services.nl
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [213.75.21.3]
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-SIZE 35882577
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-8BITMIME
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-PIPELINING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-CHUNKING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250 SMTPUTF8
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
"
2015-11-13 15:23:06 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [213.75.21.3]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
2015-11-13 15:23:06 Auth method requested: UNKNOWN
2015-11-13 15:23:06 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
2015-11-13 15:23:06 Auth method selected: LOGIN
2015-11-13 15:23:06 CLIENT -> SERVER: AUTH LOGIN
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6
"
2015-11-13 15:23:06 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2015-11-13 15:23:06 CLIENT -> SERVER: dGZjLnNlcnZpY2VzLm5s
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6
"
2015-11-13 15:23:06 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2015-11-13 15:23:06 CLIENT -> SERVER: bzMzdWM0SG4h
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 Nukf_rqpXirih7VNUVRMmFMTvXlTTogqFXpvpIBz-ATEXQpQNVwkI08BPO4LfNacWK_9GC
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 Nd5a8zwHGwfTqBVZaRw4ylUkHtNzAwmFIPGu1ipWCzhAb8KpympsvFW38_QxG0WpNIe_rl
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 c30eeUc9I965FHFo_adYbiyKDcy-mFURulZOYhZgbtIVBdZyDS8ZL5lXYWrJy77KI5TMXF
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 LEgXgQdrBhMgRTCc4g4ioOxEF1Ms> Please log in via your web browser and
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 then try again.
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 Learn more at
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
"
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp
"
2015-11-13 15:23:06 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp
2015-11-13 15:23:06 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp
2015-11-13 15:23:06 SMTP Error: Could not authenticate.
2015-11-13 15:23:06 CLIENT -> SERVER: QUIT
2015-11-13 15:23:06 SMTP -> get_lines(): $data was ""
2015-11-13 15:23:06 SMTP -> get_lines(): $str is "221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp
"
2015-11-13 15:23:06 SMTP -> get_lines(): $data is "221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp
"
2015-11-13 15:23:06 SERVER -> CLIENT: 221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp
2015-11-13 15:23:06 Connection: closed
2015-11-13 15:23:06 SMTP Error: Could not authenticate.



SMTP Host is smtp.gmail.com.

I apologise for the long post.

Thank you
https:///t5/user/viewprofilepage/user-id/1346 schreef op https:///t5/Stel-uw-vraag/SMTP-Error-Could-not-authenticate/m-p/5145#M157

https:///t5/user/viewprofilepage/user-id/227 schreef op https:///t5/Stel-uw-vraag/SMTP-Error-Could-not-authenticate/m-p/5144#M156

Hello fr2632,

The error reporting is very minimal. Is it possible to have a more detailed report by using something like 'SMTPDebug = 1'?

Also be sure you're using port 465 when using SSL and port 587 when trying TLS.

 

Tim, I am sure. The following is a more detailed debugging: 

Test Message Sent

The result was:

bool(false)

2015-11-13 15:23:06 CLIENT -> SERVER: STARTTLS 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "220 2.0.0 Ready to start TLS " 2015-11-13 15:23:06 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2015-11-13 15:23:06 CLIENT -> SERVER: EHLO www.tfc-services.nl 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [213.75.21.3] " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-SIZE 35882577 " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-8BITMIME " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-PIPELINING " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250-CHUNKING " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "250 SMTPUTF8 " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 " 2015-11-13 15:23:06 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [213.75.21.3] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2015-11-13 15:23:06 Auth method requested: UNKNOWN 2015-11-13 15:23:06 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH 2015-11-13 15:23:06 Auth method selected: LOGIN 2015-11-13 15:23:06 CLIENT -> SERVER: AUTH LOGIN 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 " 2015-11-13 15:23:06 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2015-11-13 15:23:06 CLIENT -> SERVER: dGZjLnNlcnZpY2VzLm5s 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 " 2015-11-13 15:23:06 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2015-11-13 15:23:06 CLIENT -> SERVER: bzMzdWM0SG4h 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 Nukf_rqpXirih7VNUVRMmFMTvXlTTogqFXpvpIBz-ATEXQpQNVwkI08BPO4LfNacWK_9GC " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 Nd5a8zwHGwfTqBVZaRw4ylUkHtNzAwmFIPGu1ipWCzhAb8KpympsvFW38_QxG0WpNIe_rl " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 c30eeUc9I965FHFo_adYbiyKDcy-mFURulZOYhZgbtIVBdZyDS8ZL5lXYWrJy77KI5TMXF " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $data was "534-5.7.14 get_lines(): $str is "534-5.7.14 LEgXgQdrBhMgRTCc4g4ioOxEF1Ms> Please log in via your web browser and " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 then try again. " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534-5.7.14 Learn more at " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at " 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at " 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp " 2015-11-13 15:23:06 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp 2015-11-13 15:23:06 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 71sm4404188wmm.24 - gsmtp 2015-11-13 15:23:06 SMTP Error: Could not authenticate. 2015-11-13 15:23:06 CLIENT -> SERVER: QUIT 2015-11-13 15:23:06 SMTP -> get_lines(): $data was "" 2015-11-13 15:23:06 SMTP -> get_lines(): $str is "221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp " 2015-11-13 15:23:06 SMTP -> get_lines(): $data is "221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp " 2015-11-13 15:23:06 SERVER -> CLIENT: 221 2.0.0 closing connection 71sm4404188wmm.24 - gsmtp 2015-11-13 15:23:06 Connection: closed 2015-11-13 15:23:06 SMTP Error: Could not authenticate.

SMTP Host is smtp.gmail.com.

I apologise for the long post.

Thank you

 

An additinal info : It was working fine before the migration to the KPN server. No settings and such has been modified since then.

Thank you
Reputatie 7
Badge +11
Hi fr2632,

It is definitely an authorisation issue!

2015-11-13 15:23:06 SMTP Error: Could not authenticate.

There have been some changes at Google's side. Perhaps you can try this:

Head over to Account Security Settings (https://www.google.com/settings/security/lesssecureapps) and enable "Access for less secure apps", this allows you to use the google smtp for clients other than the official ones.
https:///t5/user/viewprofilepage/user-id/227 schreef op https:///t5/Stel-uw-vraag/SMTP-Error-Could-not-authenticate/m-p/5147#M159Hi fr2632,

It is definitely an authorisation issue!

2015-11-13 15:23:06 SMTP Error: Could not authenticate.There have been some changes at Google's side. Perhaps you can try this:

Head over to Account Security Settings (https://www.google.com/settings/security/lesssecureapps) and enable "Access for less secure apps", this allows you to use the google smtp for clients other than the official ones.

 It works! Thank you! So simple was it! 
Reputatie 7
Badge +11
Awesome! You're very welcome! 🙂

Reageer