Add subject and from to templates
Feature request: Add a subject and a from: field to the templates. That way we can change a subject line without redeploying our server-side software.
Hi all,
Thank you for your patience here. We have added the ability to store From address, Subject and Reply-to headers directly to a template. This is available via our API (pass headers parameter with JSON key:value dictionary when creating or updating a template), as well as our UI. You can then send a message with just the recipient and template name.
-
Laurence Harker commented
Excellent, thank you very much
-
Hector Velar commented
Hi Chris. I have other users looking for an update to this feature.
-
Laurence Harker commented
Hi, I have recently started using the mailgun rest api and have hit this issue where the subject for an email can only be static text, when I would ideally use template variables like you have in the email body.
It is now June 23, can you provide an update or a revised estimate of when this feature will be available please?
-
Nicholas Reed commented
Could we please get an update on the timeline for this feature?
It also wasn't clear if text/plain would be supported as well (we don't like using the "t:text=yes" option because it frequently mangles the transformation from html->text).
It wasn't clear if that is what was meant by "preview text headers" in the response from August.
Thanks!
-
Luís F commented
Hey, just wondering if this has indeed been released yet.
I'm very interested in the feature but can't find it on the documentation
-
Ed commented
SendGrid offers this feature. You should too. It simplifies management of templates greatly on the backend server, since I only have to specify the template id and the recipient when sending email.
-
Nico commented
Currently we need to provide a subject using the `subject` API/SDK option. When using templates, the email content is spread across your project and there's no single source of truth.
Just like the body field, the subject should accept Handlebars syntax, e.g. "Welcome, {{name}}"
-
Berkant Varli commented
The templates should have their own subject in order to customize it due to languange differences
-
Marcin Lucko commented
Why can't set default subject for template ?