question

Aimbot Studio avatar image
Aimbot Studio asked

Sending Emails not Working using smtp

Hello

I am trying to send an email to my users when they update their contact email, but it does not seem to work. The contact email updates correctly though using AddOrUpdateContactEmail. For now, I have configured the smtp add on like this: smtp host is smtp.google.com with port 587 and I put a gmail account with its password. I created an email template and added a rule to send that template when the contact email is updated. I tried multiple times, it does not even send and event shows up in the PlayStream section of the players with a success result false.

Here is the json of playstream

"{

    "EventName": "sent_email",
    "EmailTemplateId": "ED85A5EEFA9C432C",
    "EmailTemplateName": "EmailVerificationTemplate",
    "EmailTemplateType": "EmailVerification",
    "Success": false,
    "ErrorName": "EmailClientTimeout",
    "ErrorMessage": "SMTP client timed out sending mail to smtp.gmail.com:465",
    "EmailName": "Primary",
    "Token": "4A879ACCD4742B32",
    "Subject": "Email Verification",
    "Body": "<head></head>\r\n<body><p> You recently registered a new email with us.</p>\r\n<p>Please click <a href=\"https://bfed1.playfabapi.com/EmailConfirmation/Confirm/?token=4A879ACCD4742B32&titleId=BFED1&templateId=ED85A5EEFA9C432C\">here</a> confirm your email. Thanks!</p>",
    "Language": "en",
    "EventNamespace": "com.playfab",
    "EntityType": "player",
    "Source": "PlayFab",
    "TitleId": "BFED1",
    "EntityId": "6CFCE7012E43B504",
    "EventId": "1e7230b234f342f6a719971840664292",
    "SourceType": "BackEnd",
    "Timestamp": "2021-05-06T05:47:39.955462Z",
    "History": null,
    "CustomTags": null,
    "Reserved": null,
    "PlayFabEnvironment": {
        "Vertical": "master",
        "Cloud": "main",
        "Application": "queueprocessor",
        "Commit": "4cc12b6"
    } 

}"

I don't really know what the issue could be, does anybody have an idea?

Thanks!

apisAccount ManagementPartner Add-onsPlayStream
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.

Aimbot Studio avatar image Aimbot Studio commented ·
I also tried SMTP with port no 587. now I am facing this issue


Email Verification Issue

0 Likes 0 ·

1 Answer

·
Seth Du avatar image
Seth Du answered

I am using 587 and it works fine. Have you configured a specific "app password" for your smtp service? Please refer to Sign in using app passwords - Gmail Help (google.com)

2 comments
10 |1200

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

Aimbot Studio avatar image Aimbot Studio commented ·

I did not configure app password because 2 step verification is off.

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Aimbot Studio commented ·

Please configure app password and try again. Otherwise, you may consult Gmail team if they can provide smtp service without it.

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.