question

Kim Strasser avatar image
Kim Strasser asked

Questions about adding contact email with AddOrUpdateContactEmail

The player added his contact email ("mycontactaddress1@gmail.com") with AddOrUpdateContactEmail API. Now, the verification status in his account displays "Unverified" and I don't know if a verification email was sent to the player. Is it possible to find out if a verification email was sent to the player? For example in a PlayStream event?

What can I do if the player didn't get the verification email or if he accidentally deleted the verification email before clicking on the link?

What happens if a verification email was sent but if the player doesn't click on the link in this email and if the player calls AddOrUpdateContactEmail API again and adds another contact email ("mycontactaddress2@gmail.com") to his account? Does PlayFab send a second verification email because the player has now added another contact email address?

What happens if the player clicks on the verification link in the first email ("mycontactaddress1@gmail.com") before he clicks on the verification link in the second email ("mycontactaddress2@gmail.com")? Will his first contact email address get verified or not?

Account Management
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

·
Rick Chen avatar image
Rick Chen answered

The email verification process is not automatically set up for your title, you could follow this document Using a rule to verify a contact email address to set up the email verification.

After set up:

>> Is it possible to find out if a verification email was sent to the player? For example in a PlayStream event?

Yes, you can inspect the event that the verification email was sent in PlayStream.

>> What can I do if the player didn't get the verification email or if he accidentally deleted the verification email before clicking on the link?

The solution could be that the player calls AddOrUpdateContactEmail API again with same email. Or you can use Server API SendEmailFromTemplate in your CloudScript, and make a button for player to call this script to resend an verification email.

>> What happens if the player calls AddOrUpdateContactEmail API again and adds another contact email to his account?

The player will receive another verification email in his new email address.

>> What happens if the player clicks on the verification link in the first email before he clicks on the verification link in the second email?

The Verification Status of the contact email will change to Confirmed.

If you have further question, please feel free to ask.

1 comment
10 |1200

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

Kim Strasser avatar image Kim Strasser commented ·

Sending the verification email to the player is not working. PlayStream:

"EventName": "sent_email",
"EventId": "dc2f8fdb67614fe3bb2633e215b26fcd",
"EntityId": "4ECF4FE0D81054B8",
"TitleId": "E5E2C",
"Source": "PlayFab",
"EmailName": "Primary",
"EmailTemplateId": "2C901EE6CD086162",
"EmailTemplateName": "MyFirstEmailVerificationTemplate",
"EmailTemplateType": "EmailVerification",
"Success": false,
"ErrorName": "SmtpServerAuthenticationError",
"ErrorMessage": "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at",
"Token": "D657EA70ADFBC08",
"Subject": "Email Verification",<br>

UPDATE: It works now. I found the answer for the gmail account here: https://community.playfab.com/questions/43146/smtp-server-response-5757-smtp-client-was-not-auth.html

0 Likes 0 ·

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.