Hello everyone I have implement postmark in .net core for sending email . I have use post method on button click(call function with ajax) but this not working.
This error face
PostmarkDotNet.Exceptions.PostmarkValidationException: 'Zero recipients specified'

Satya KarkiRank #78 · 24.6K reputationPosted Apr 20, 2022, 4:59 AM EDT
Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 20, 2022, 3:32 AM EDT
You should check your Body format first. From error it looks like you have missed recipients
Example body format
{ "From": "[email protected]", "To": "[email protected]", "Cc": "[email protected]", "Bcc": "[email protected]", "Subject": "Test", "Tag": "Invitation", "HtmlBody": "Hello ", "TextBody": "Hello", "ReplyTo": "[email protected]", "Headers": [ { "Name": "CUSTOM-HEADER", "Value": "value" } ], "TrackOpens": true, "TrackLinks": "None", "Attachments": [ { "Name": "readme.txt", "Content": "dGVzdCBjb250ZW50", "ContentType": "text/plain" }, { "Name": "report.pdf", "Content": "dGVzdCBjb250ZW50", "ContentType": "application/octet-stream" }, { "Name": "image.jpg", "ContentID": "cid:image.jpg", "Content": "dGVzdCBjb250ZW50", "ContentType": "image/jpeg" } ], "Metadata": { "color":"blue", "client-id":"12345" }, "MessageStream": "outbound" }Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 20, 2022, 5:54 AM EDT
RohanRank #1,548 · 1K reputationPosted Apr 20, 2022, 5:51 AM EDT
RohanRank #1,548 · 1K reputationPosted Apr 20, 2022, 6:14 AM EDT