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.