I read the subject of google but It's says that the functionnality is no longer accessible. What can I do for replacing gmail ?
Because if I not use SMTP, people doesn't receved the email for the inscription.
Samerton:
Hi,
To get a full email log, please edit the file core/classes/Core/Email.php in a text editor. Find the following line (line 109 using version 2.0.3):
$mail->SMTPDebug = SMTP::DEBUG_OFF;
Replace it with the following:
$mail->SMTPDebug = SMTP::DEBUG_LOWLEVEL;
Finally save and exit the file (and upload it back to your web host if necessary).
Then if you send a test email in the StaffCP -> Configuration -> Emails tab, you should see a full email log appear on screen with further information.
Logs :
Spoiler
2023-02-04 16:21:48 Connection: opening to smtp.gmail.com:587, timeout=15, options=array()2023-02-04 16:21:48 Connection: opened2023-02-04 16:21:48 SMTP INBOUND: "220 smtp.gmail.com ESMTP v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp"2023-02-04 16:21:48 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp2023-02-04 16:21:48 CLIENT -> SERVER: EHLO spring-craft.fr2023-02-04 16:21:48 SMTP INBOUND: "250-smtp.gmail.com at your service, [146.59.9.53]"2023-02-04 16:21:48 SMTP INBOUND: "250-SIZE 35882577"2023-02-04 16:21:48 SMTP INBOUND: "250-8BITMIME"2023-02-04 16:21:48 SMTP INBOUND: "250-STARTTLS"2023-02-04 16:21:48 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"2023-02-04 16:21:48 SMTP INBOUND: "250-PIPELINING"2023-02-04 16:21:48 SMTP INBOUND: "250-CHUNKING"2023-02-04 16:21:48 SMTP INBOUND: "250 SMTPUTF8"2023-02-04 16:21:48 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [146.59.9.53]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF82023-02-04 16:21:48 CLIENT -> SERVER: STARTTLS2023-02-04 16:21:48 SMTP INBOUND: "220 2.0.0 Ready to start TLS"2023-02-04 16:21:48 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS2023-02-04 16:21:48 CLIENT -> SERVER: EHLO spring2023-02-04 16:21:48 SMTP INBOUND: "250-smtp.gmail.com at your service, [146.59.9.53]"2023-02-04 16:21:48 SMTP INBOUND: "250-SIZE 35882577"2023-02-04 16:21:48 SMTP INBOUND: "250-8BITMIME"2023-02-04 16:21:48 SMTP INBOUND: "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"2023-02-04 16:21:48 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"2023-02-04 16:21:48 SMTP INBOUND: "250-PIPELINING"2023-02-04 16:21:48 SMTP INBOUND: "250-CHUNKING"2023-02-04 16:21:48 SMTP INBOUND: "250 SMTPUTF8"2023-02-04 16:21:48 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [146.59.9.53]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF82023-02-04 16:21:48 Auth method requested: UNSPECIFIED2023-02-04 16:21:48 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH2023-02-04 16:21:48 Requested auth method not available:2023-02-04 16:21:48 Auth method selected: LOGIN2023-02-04 16:21:48 CLIENT -> SERVER: AUTH LOGIN2023-02-04 16:21:48 SMTP INBOUND: "334 VXNlcm5hbWU6"2023-02-04 16:21:48 SERVER -> CLIENT: 334 VXNlcm5hbWU62023-02-04 16:21:48 CLIENT -> SERVER: c3ByaW5nY3JhZnQuY29udGFjdEBnbWFpbC5jb20=2023-02-04 16:21:48 SMTP INBOUND: "334 UGFzc3dvcmQ6"2023-02-04 16:21:48 SERVER -> CLIENT: 334 UGFzc3dvcmQ62023-02-04 16:21:48 CLIENT -> SERVER: c3ByaW5nYWRtaW5tYWlsMjI=2023-02-04 16:21:48 SMTP INBOUND: "535-5.7.8 Username and Password not accepted. Learn more at"2023-02-04 16:21:48 SMTP INBOUND: "535 5.7.8 https://support.google.com/mail/?p=BadCredentials v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp"2023-02-04 16:21:48 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp2023-02-04 16:21:48 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 https://support.google.com/mail/?p=BadCredentials v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtpSMTP Error: Could not authenticate.2023-02-04 16:21:48 CLIENT -> SERVER: QUIT2023-02-04 16:21:48 SMTP INBOUND: "221 2.0.0 closing connection v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp"2023-02-04 16:21:48 SERVER -> CLIENT: 221 2.0.0 closing connection v17-20020aa7dbd1000000b004a249a97d84sm2686809edt.23 - gsmtp2023-02-04 16:21:48 Connection: closedSMTP Error: Could not authenticate.
Hello everyone ! (And Samerton because I think It's you that you will give me anwser
)
I try to set up gmail SMTP server but the tutorial on the faq's is up to date (and the link too) and I don't find my error and why It's doesn't work.
I put that :
https://i.goopics.net/hwdpsk.png
And I have that when I try to send test email :
https://i.goopics.net/rztjly.png