question

ashkan-saeedi-mazdeh avatar image
ashkan-saeedi-mazdeh asked

sending email using .net sdk an server api fails but returns success

We are trying to send emails using our server api.and .NET sdk. Title id is 1c3d. previously it worked in unity using the server api but when we moved it to our .NET based server using the same template id. The request returns success but we receive no emails on our accounts.

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.

ashkan-saeedi-mazdeh avatar image ashkan-saeedi-mazdeh commented ·

We could see in our event history that the email is failing with the following json.

JSON
{
"EventName": "sent_email",
"EmailTemplateId": "462C754FB9AB0F85",
"EmailTemplateName": "confirmEmail",
"EmailTemplateType": "EmailVerification",
"Success": false,
"ErrorName": "SmtpServerGeneralFailure",
"ErrorMessage": "The server committed a protocol violation The server response was: ",
"EmailName": "Primary",
"Token": "DB595ACCA9FF562F",
"Subject": "Confirm Registration",
"Body": "welcome to our game",
"Language": "en",
"EventNamespace": "com.playfab",
"EntityType": "player",
"Source": "PlayFab",
"TitleId": "1C3D",
"EntityId": "8270A7E5FECD1E7B",
"EventId": "1367ea8d87974506bc068fb27095a281",
"SourceType": "BackEnd",
"Timestamp": "2019-07-28T14:43:48.0763442Z",
"PlayFabEnvironment": {
"Vertical": "master",
"Cloud": "main",
"Application": "queueprocessor",
"Commit": "fa4b38d"
}
}

0 Likes 0 ·

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

According to that you can get the events successfully, and SmtpServerGeneralFailure isn't included in this API's errors, PlayFab’s API works fine. It should return success.

About a possible cause of this issue. Maybe the asynchronous solution overload the server (usually servers have a limited number of concurrent threads or connection handling capacity, or there may be a policy in place that limits the number of concurrent connections from one IP address). Try limiting the number of concurrent sends and see if the error still happens.

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.