Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HtmlContent property will set value, does not get value #1217

Open
JoshuaCarroll opened this issue Jan 16, 2025 · 0 comments
Open

HtmlContent property will set value, does not get value #1217

JoshuaCarroll opened this issue Jan 16, 2025 · 0 comments

Comments

@JoshuaCarroll
Copy link

Steps to reproduce:

  1. Create a SendGridMessage
    SendGridMessage message= MailHelper.CreateSingleEmail(
        new EmailAddress("from@email.com"),
        new EmailAddress("to@email.com"),
        "This is a subject",
        "This is plaintext content",
        "This is HTML content"
    );
  1. 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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant