question

Kevin avatar image
Kevin asked

Send Account Recovery Email doesn't work

We are trying to test the Send Account Recovery Email feature, without a custom template. The documentation isn't great, but from what I've found from other sources, it sounds like if we don't specify a custom template, PlayFab should send out an email with a default template.

Using the Unity SDK, we've got a simple test function that looks like this:

 public void SendAccountRecoveryEmail(string email, UnityAction successCallback, UnityAction failureCallback) {
     var request = new SendAccountRecoveryEmailRequest {
         Email = email, TitleId = PlayFabSettings.TitleId
     };
     PlayFabClientAPI.SendAccountRecoveryEmail(request, (result) => {
         Debug.Log("Success " + result.ToJson());
         successCallback?.Invoke();
     }, (error) => {
         LogError(error);
         failureCallback?.Invoke();
     });
 }

If we call this function with an email address that isn't linked to any account, we immediately get back an 'invalid email' error. However, if we call this function with a valid email address that is linked to an account, it takes 30 seconds to get a response from PlayFab and the response we get is

Playfab Error: 400 BadRequest | ServiceUnavailable HTTP/1.1 500 Internal Server Error

If we go into the Game Manager, select a player, check the "Send password reset email" box, and click "Save", the page refreshes, but the email never comes through (no, it's not in the Spam box). Incidentally, it doesn't make any sense for "Send password reset email" to be a checkbox; it should be a button.

Account ManagementAuthentication
10 |1200

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

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

The issue has been resolved, you may have a check. If the issue persists, please feel free to let me know.

10 |1200

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

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.