diff options
author | BobMcLaren <bobmclaren@fssi-ca.com> | 2012-05-30 10:04:39 -0400 |
---|---|---|
committer | BobMcLaren <bobmclaren@fssi-ca.com> | 2012-05-30 10:04:39 -0400 |
commit | 1dc99b4e6cb840d19402d0664827dcb5131d1fc8 (patch) | |
tree | b70c24712d8eb1e8710bd59b2ef2e3f552c766cc /SendGrid/SendGridMail/Header.cs | |
parent | cf275fca7c7c78364bf5031d0ab7dc01afdd51c4 (diff) | |
download | sendgrid-csharp-1dc99b4e6cb840d19402d0664827dcb5131d1fc8.zip sendgrid-csharp-1dc99b4e6cb840d19402d0664827dcb5131d1fc8.tar.gz sendgrid-csharp-1dc99b4e6cb840d19402d0664827dcb5131d1fc8.tar.bz2 |
Added the .AddTo() method to IHeader to allow for sending to multiple recipients in a single email.
Diffstat (limited to 'SendGrid/SendGridMail/Header.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Header.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/Header.cs b/SendGrid/SendGridMail/Header.cs index f1328f5..127b05a 100755 --- a/SendGrid/SendGridMail/Header.cs +++ b/SendGrid/SendGridMail/Header.cs @@ -21,6 +21,12 @@ namespace SendGridMail _settings.AddArray(keys, substitutions);
}
+
+ public void AddTo(IEnumerable<string> recipients)
+ {
+ _settings.AddArray(new List<string> { "to" }, recipients);
+ }
+
public void AddUniqueIdentifier(IDictionary<string, string> identifiers)
{
foreach (var key in identifiers.Keys)
|