sendgrid-csharp icon indicating copy to clipboard operation
sendgrid-csharp copied to clipboard

Dynamic templates: `{{Subject}}` not printed into my template using `SendGridMessage.SetSubject("a subject")` or `SendGridMessage.SetGlobalSubject("a subject")`

Open MarGraz opened this issue 5 months ago • 0 comments

Hi,

I'm using SendGrid version 9.29.3 and I noticed that when I use SendGridMessage.SetSubject("my subject title") or SendGridMessage.SetGlobalSubject("another subject"), neither is rendered in my template using the {{Subject}} placeholder.

I was only able to display the subject when I added it into myDynamicTemplateData, which I passed to SendGridMessage.SetTemplateData(myDynamicTemplateData);, using a lowercase property like "subject". In my SendGrid template, I then used it as {{subject}}.

Please fix this bug, as I spent several hours trying to figure out what was wrong.

Thank you 😊

MarGraz avatar Sep 12 '24 13:09 MarGraz