cofoundry-cms / cofoundry

Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development
https://www.cofoundry.org
MIT License
831 stars 145 forks source link

Implement Postmark #512

Closed sourabhCofoundry closed 2 years ago

sourabhCofoundry commented 2 years ago

Hello, everyone I have faced one issue in cofoundry . I have implemented PostMark in cofoundry for sending Emails but face an issue . Emails sent successfully but Data not sent.

For e.g code

var message = new TemplatedPostmarkMessage
                {
                    From = postFromEmailAddress,
                    To = sendNotification.toEmail,
                    TemplateAlias = "welcome",
                    TemplateModel = new Dictionary<string, object> { { "Sender_Name", "Sunny" } }
                };
                var client = new PostmarkClient(postMarkKey);
                await client.SendMessageAsync(message);

I have sent the user name under the "Sender_Name" properties it's not been sent.

HeyJoel commented 2 years ago

This doesn't look like a Cofoundry issue, I can't see any Cofoundry specific code here.

FYI you can format code using markdown (backticks) or by highlighting your code in the comment box and clicking on the <> button at the top of the editor.

sourabhCofoundry commented 2 years ago

Yes, this is not cofoundry code but I have implement this code in cofoundry project .

sourabhCofoundry commented 2 years ago

HeyJoel - May be cofoundry does not support postmarks because I have to try create new project and Implement this not working.

sourabhCofoundry commented 2 years ago

Any update on it and one suggestion for you please check once postmark your side. Because it's a major issue.