summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/SendGrid.cs
diff options
context:
space:
mode:
authorBobMcLaren <bobmclaren@fssi-ca.com>2013-07-16 12:57:50 -0400
committerBobMcLaren <bobmclaren@fssi-ca.com>2013-07-16 12:57:50 -0400
commit8004a6e3cc4b58757d09572ad3a5b41b7443b6d0 (patch)
treedee8b1c653bd7110faa80bee57241c792aeca9f7 /SendGrid/SendGridMail/SendGrid.cs
parentfb4a2c2f3e20ba87dd22919ebec758a56fb01aaf (diff)
downloadsendgrid-csharp-8004a6e3cc4b58757d09572ad3a5b41b7443b6d0.zip
sendgrid-csharp-8004a6e3cc4b58757d09572ad3a5b41b7443b6d0.tar.gz
sendgrid-csharp-8004a6e3cc4b58757d09572ad3a5b41b7443b6d0.tar.bz2
Added SetCategories() method to support multiple categories. SetCategory() left to maintain backward compatibility.
Diffstat (limited to 'SendGrid/SendGridMail/SendGrid.cs')
-rwxr-xr-xSendGrid/SendGridMail/SendGrid.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/SendGrid.cs b/SendGrid/SendGridMail/SendGrid.cs
index 0ee7079..f7901c1 100755
--- a/SendGrid/SendGridMail/SendGrid.cs
+++ b/SendGrid/SendGridMail/SendGrid.cs
@@ -305,6 +305,11 @@ namespace SendGridMail
{
Header.SetCategory(category);
}
+
+ public void SetCategories(IEnumerable<string> categories)
+ {
+ Header.SetCategories(categories);
+ }
public void AddAttachment(Stream stream, String name)
{