question

Gonzalo Aguirre Bisi avatar image
Gonzalo Aguirre Bisi asked

Recovery Email is not sent

Hello,

we took the following steps so far:

1. Created Email template in Playfab title
2. Setup SMTP service in Playfab title3. Created the callback script on our server4. Used PlayFabClientAPI.SendAccountRecoveryEmail in Unity to trigger the call

The current issue is that the email is not delivered, while the playfab API returns a successful call inside Unity.

Unity client implementation for reference:

    public void ResetPassword(string email) {
        var request = new SendAccountRecoveryEmailRequest {
            Email = email,
            EmailTemplateId = "TEMPLATEID",
            TitleId = "TITLEID",
        };
        PlayFabClientAPI.SendAccountRecoveryEmail(request, res =>
        {
            Debug.Log("An account recovery email has been sent to the player's email address.");
        }, error => {
            Debug.Log(error.GenerateErrorReport());
        });
    }

Any help would be greatly appreciated.

apisunity3dAccount Management
4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Citrus Yan avatar image Citrus Yan commented ·

Would you please take a look at the details of the "sent_email" event under [Game Manager] -> [Data] -> [Event History]? And, what's your title id?

1 Like 1 ·
Gonzalo Aguirre Bisi avatar image Gonzalo Aguirre Bisi Citrus Yan commented ·

Hi, Citrus, thank you for your response.

I was able to find that info in the [Data] tab.
It turns out it is an SMTP authentication error, we can now continue to fix any errors in the callback. Thank you!

0 Likes 0 ·
Gonzalo Aguirre Bisi avatar image Gonzalo Aguirre Bisi Citrus Yan commented ·
Access to XMLHttpRequest at 'https://72bc7.playfabapi.com/Admin/ResetPassword' from origin 'https://grumpyowlgames.com' has been blocked by CORS policy: Request header field secretkey is not allowed by Access-Control-Allow-Headers in preflight response.

Would you know why this must be?
Is it an error from our implementation or a setting in Playfab?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.