Hello. I set up sending an email to confirm the mail, but the email does not come to the user. I rechecked everything 10 times, enabled access to untrusted applications in gmail, but the email is not sent. Also I tried to send an email via server.SendEmailFromTemplate in CloudScript.
Can you provide your Title ID?
In addition, If SendEmailFromTemplate API is called, there should be a generated PlayStream event, which can indicate if the email is sent successfully.
My TitleId: BDA22
No event is generated at all. The function also does not cause an error. That is, the function is successfully triggered, but the letter is not sent.
Answer by SethDu · Nov 06, 2019 at 01:39 AM
I have checked your title and find several "email_sent" PlayStream events on Nov. 4th. The Error message is "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. "
May I ask have you tried to send emails later since then? I believe it is SMTP setup issue and in fact, you may get more help from the SMTP provider related developer community. There are several possible reasons, SMTP port number can be incorrect; SMTP provider(like Gmail) requires app-specific password; The password for SMTP is simply too weak to pass the measuring process.
In addition, you may keep the PlayStream web page open to monitor the events generating. Otherwise, p'le'ase navigate to "Game Manager" -> "Data" -> "Event History" to retrieve former events.
Answer by Aimbot Studio · May 06, 2021 at 09:29 AM
I am facing the same issue. My Title Id is "BFED1"
What's your SMTP provider? I have checked your PlayStream event, you may need to set up "less secure app" in your mail setting. For example, if it is Gmail -- https://myaccount.google.com/lesssecureapps
I have turned on "less secure App" in my mail, i am using gmail server
Have you checked the PlayStream Event? What is the detailed error message?
Answer by Aybjax · Jun 29, 2021 at 08:40 PM
Good day! Thanks in advance for you help!
I am facing the same issue. Monitoring the playstream I learned that it is failing. However, I dont event get the error callback on my server (I guess that if sending fails, it must send request to error callback url).
/********************************** Here is head of event **************************/
{ "EventName": "sent_email", "EmailTemplateId": "8B1AF472557A907E", "EmailTemplateName": "test.portal.reset.password", "EmailTemplateType": "AccountRecovery", "Success": false, "ErrorName": "EmailClientTimeout", "ErrorMessage": "SMTP client timed out sending mail to smtp.gmail.com:465", "EmailName": "Primary", "Token": "3C635E5EE24F460D", "Subject": "Смена пароли аккаунта",
/************************************************************************************/
The email configuration work on remote test server.
What should I do?
P.S. Title id is DD96A.
Please feel free to let me know if you have any other questions. Creating a new thread will be preferred. Thanks for your understanding.
Answer by Akarsh jain · Jul 05, 2021 at 05:06 AM
HI I found the ans i wasn't receiving any mail cause i need to setup up 2 factor authentication and app password + less secure to my account all these three things helped me get the mail and really thanks to the community to help
There is a problem with the certificate when using the container. 1 Answer
Sending Telemetry events from Server 1 Answer
PHP example for Client Connection not Working 2 Answers
Advantages of CloudScript over Calling JavaScript from Node.js 1 Answer
How can a client launch their game server via "Server 2.0" with custom settings? 1 Answer