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

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

Open
MarGraz opened this issue Sep 12, 2024 · 0 comments

Comments

@MarGraz
Copy link

MarGraz commented Sep 12, 2024

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 MarGraz changed the title Dynamic templates: SendGridMessage.SetSubject("a subject") and SendGridMessage.SetGlobalSubject("a subject") are not working into the template using placeholder {{Subject}} Dynamic templates: {{Subject}} not printed into my template using SendGridMessage.SetSubject("a subject") or SendGridMessage.SetGlobalSubject("a subject") Sep 12, 2024
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