Skip to content

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

Open
@MarGraz

Description

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 😊

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions