question

Hiroaki Komatsu avatar image
Hiroaki Komatsu asked

SMTP Verification Mail problem

We are trying to send a verification email using a gmail account for smtp, following this article.

https://api.playfab.com/docs/tutorials/landing-automation/using-a-rule-to-verify-a-contact-email-address

But I am getting the following error on my PlayStream event,

{
    "EventName": "sent_email",
    "EmailTemplateId": "469EF8FCF51A1454",
    "EmailTemplateName": "VerificationEmail ",
    "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.5.1 Authentication Required. Learn more at",
    "EmailName": "Primary",
    "Token": "FE82E2E846684C75",
    "Subject": "Hello ashish",
    "Body": "<head></head>\r\n<body><p> You recently registered a new email with us.</p>\r\n<p>Please click <a href=\"https://5caf1.playfabapi.com/EmailConfirmation/Confirm/?token=FE82E2E846684C75&titleId=5CAF1&templateId=469EF8FCF51A1454\">here</a> confirm your email. Thanks!</p>",
    "Language": "en",
    "EventNamespace": "com.playfab",
    "EntityType": "player",
    "Source": "PlayFab",
    "TitleId": 
    "EntityId": "8EDE0BA4544AAE81",
    "EventId": "1bae025215c842b78e756a4a38f9f121",
    "SourceType": "BackEnd",
    "Timestamp": "2019-11-17T05:14:59.9420382Z",
    "History": null,
    "CustomTags": null,
    "Reserved": null,
    "PlayFabEnvironment": {
        "Vertical": "master",
        "Cloud": "main",
        "Application": "queueprocessor",
        "Commit": "30984dd"
    }
}

The smtp addon is setup screenshot-2019-11-17-at-105110-am.png.

But no email has been recieved.

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

·
Seth Du avatar image
Seth Du answered

According to the error, may I ask have you created an App Password for Gmail? In normal circumstances, this issue can be caused by authentication failure on Google side. Please follow the official tutorial on https://support.google.com/accounts/answer/185833?hl=en to generate an App Password for SMTP configuration.

You may find information in "Note" on PlayFab official documentation:https://docs.microsoft.com/en-us/gaming/playfab/features/engagement/emails/setting-up-an-smtp-server-with-add-ons

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.