summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/IHeader.cs
diff options
context:
space:
mode:
authorBobMcLaren <bobmclaren@fssi-ca.com>2012-05-30 10:04:39 -0400
committerBobMcLaren <bobmclaren@fssi-ca.com>2012-05-30 10:04:39 -0400
commit1dc99b4e6cb840d19402d0664827dcb5131d1fc8 (patch)
treeb70c24712d8eb1e8710bd59b2ef2e3f552c766cc /SendGrid/SendGridMail/IHeader.cs
parentcf275fca7c7c78364bf5031d0ab7dc01afdd51c4 (diff)
downloadsendgrid-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/IHeader.cs')
-rwxr-xr-xSendGrid/SendGridMail/IHeader.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/IHeader.cs b/SendGrid/SendGridMail/IHeader.cs
index f55eadd..4045385 100755
--- a/SendGrid/SendGridMail/IHeader.cs
+++ b/SendGrid/SendGridMail/IHeader.cs
@@ -20,6 +20,13 @@ namespace SendGridMail
void AddSubVal(String tag, IEnumerable<String> substitutions);
/// <summary>
+ /// This adds the "to" array to the X-SMTPAPI header so that multiple recipients
+ /// may be addressed in a single email. (but they each get their own email, instead of a single email with multiple TO: addressees)
+ /// </summary>
+ /// <param name="recipients">List of email addresses</param>
+ void AddTo(IEnumerable<string> recipients);
+
+ /// <summary>
/// This adds parameters and values that will be bassed back through SendGrid's
/// Event API if an event notification is triggered by this email.
/// </summary>