diff options
Diffstat (limited to 'SendGrid/SendGridMail/SendGrid.cs')
-rw-r--r-- | SendGrid/SendGridMail/SendGrid.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/SendGrid.cs b/SendGrid/SendGridMail/SendGrid.cs index fe6a99b..667f94d 100644 --- a/SendGrid/SendGridMail/SendGrid.cs +++ b/SendGrid/SendGridMail/SendGrid.cs @@ -65,6 +65,7 @@ namespace SendGrid {"Footer", "footer"},
{"GoogleAnalytics", "ganalytics"},
{"Template", "template"},
+ {"Templates","templates"},
{"Bcc", "bcc"},
{"BypassListManagement", "bypass_list_management"}
};
@@ -362,6 +363,14 @@ namespace SendGrid Header.AddFilterSetting(filter, new List<string> {"text/html"}, html);
}
+ public void EnableTemplateEngine(string templateId)
+ {
+ var filter = Filters["Templates"];
+
+ Header.EnableFilter(filter);
+ Header.AddFilterSetting(filter, new List<string> { "template_id" }, templateId);
+ }
+
public void EnableBcc(string email)
{
var filter = Filters["Bcc"];
|