I've been having trouble implementing Contact Email verification.
The problem is that sometimes it works, sometimes it fails silently.
I did as instructed by the tutorial here
https://api.playfab.com/docs/tutorials/landing-automation/using-a-rule-to-verify-a-contact-email-address
And sometimes at registration stage, PlayStream shows the email is sent.
Sometimes, the registration is a success, but the Contact Email Address is empty.
Worse is that the AddorUpdateContactEmailRequest fails if the email is empty, so... it doesn't send any email.
So, instead of that function, I used SendEmailFromTemplateRequest instead, which sends out the confirmation email fine, but because the ContactEmail is empty in some cases, this also fails when you click the confirmation URL... it's not the same function as AddorUpdate.
It's funny because all the requests are passed as success, but the result is not a email sent. nothing happens on the PlayStream...
Can somebody please point out the possible problem?
I'm building on Unity for WebGL.
some of the code here
SendEmailFromTemplateRequest emailReq = new SendEmailFromTemplateRequest {
PlayFabId = playerProfile.PlayerId,
EmailTemplateId = verificationTemplateId
};
PlayFabServerAPI.SendEmailFromTemplate(emailReq, ResendEmailSuccess, ResendEmailError);
and
AddOrUpdateContactEmailRequest emailRequest = new AddOrUpdateContactEmailRequest() {
EmailAddress = contactEmail
};
PlayFabClientAPI.AddOrUpdateContactEmail(emailRequest, OnEmailAccountLinkSuccess, OnEmailAccountLinkError);
SendEmailFromTemplate works and send email, only with a broken confirmation link.
AddOrUpdateContactEmail returns success, however, the playstream logs no "sent email" action performed and the email is not sent at all. this is a silent error that should be fixed at least...