I am using Postmark to send emails, it work well. i want the ability to set the preview of the email
The code that i am using is the following:
var message = new PostmarkMessage()
{
To = EmailTo,
From = "do-not-reply@test.com",
TrackOpens = true,
Subject = Subject,
Cc = CcEmail,
Bcc = bccEmail,
TextBody = EmailBody,
HtmlBody = EmailBody,
Tag = "test",
Headers = new HeaderCollection { new MailHeader("X-CUSTOM-HEADER","Header content") },
};
var postClient = new PostmarkClient(MainConfig.PostmarkKey);
try
{
return await postClient.SendMessageAsync(message);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return null;
}
I am not sure what i am missing to enable the preview.