- Symptom
- Email arrives with the template's subject, not the one in the requestSubject is blank when the template version has no subject and only data is passedTop-level subject works without templateId and breaks with it
- Cause
- A dynamic template version that defines a subject overrides any subject set at message or personalization level. To vary it per send, the template subject must itself be a Handlebars expression fed from dynamic_template_data.
- Fix
- Set the template version subject to {{{subject}}} and pass subject inside dynamic_template_data.
- Apply
{ templateId: 'd-xxxxxxxx', dynamicTemplateData: { subject: 'Your order shipped', name: 'Ana' } } // template subject field: {{{subject}}}- Affected
- SendGrid v3 Mail Send with dynamic templates (d- ids), as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders