Steps to reproduce:
- Create a SendGridMessage
SendGridMessage message= MailHelper.CreateSingleEmail(
new EmailAddress("[email protected]"),
new EmailAddress("[email protected]"),
"This is a subject",
"This is plaintext content",
"This is HTML content"
);
- Read the value of the message.HtmlContent. It should have the string "This is HTML content" however it returns null.
The summary of the HtmlContent property says, "Gets or sets a Content object with a Mime Type of text/html."