summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Header.cs
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2012-07-13 15:01:50 -0600
committerBrandon West <brawest@gmail.com>2012-07-13 15:01:50 -0600
commitc76114aee3506b0640b9b567a846c701d78f0b5d (patch)
treeb79846a435f509fbd8708c2e89a5510c2fbc75f5 /SendGrid/SendGridMail/Header.cs
parent2a9fcb7557b8054ae6550898a9f796f40ec59c75 (diff)
downloadsendgrid-csharp-c76114aee3506b0640b9b567a846c701d78f0b5d.zip
sendgrid-csharp-c76114aee3506b0640b9b567a846c701d78f0b5d.tar.gz
sendgrid-csharp-c76114aee3506b0640b9b567a846c701d78f0b5d.tar.bz2
add passing test for setting and getting X-SMTPAPI "to" array
Diffstat (limited to 'SendGrid/SendGridMail/Header.cs')
-rwxr-xr-xSendGrid/SendGridMail/Header.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/Header.cs b/SendGrid/SendGridMail/Header.cs
index 6b92a07..be4ebeb 100755
--- a/SendGrid/SendGridMail/Header.cs
+++ b/SendGrid/SendGridMail/Header.cs
@@ -15,6 +15,14 @@ namespace SendGridMail
_settings = new HeaderSettingsNode();
}
+ public IEnumerable<string> To
+ {
+ get
+ {
+ return _settings.GetArray("to");
+ }
+ }
+
public void AddSubVal(string tag, IEnumerable<string> substitutions)
{
var keys = new List<String> {"sub", tag};