diff options
author | Eric Becking <eric.becking@sendgrid.com> | 2012-01-12 14:30:02 -0700 |
---|---|---|
committer | Eric Becking <eric.becking@sendgrid.com> | 2012-01-12 14:30:02 -0700 |
commit | d80dbc622a49ce07b7d2a8a43e275d59550202c3 (patch) | |
tree | 4a8eb84db7d2892cd5e0976fcd9c7d845e3a8b40 /SendGrid/SendGridMail/Header.cs | |
parent | fdca704e24d310c69184902dda41fdebc18fbcb5 (diff) | |
parent | b92852fa6c8f27b0723dbe69bcf66ad27d9b7149 (diff) | |
download | sendgrid-csharp-d80dbc622a49ce07b7d2a8a43e275d59550202c3.zip sendgrid-csharp-d80dbc622a49ce07b7d2a8a43e275d59550202c3.tar.gz sendgrid-csharp-d80dbc622a49ce07b7d2a8a43e275d59550202c3.tar.bz2 |
Merge branch 'us1882' of github.com:sendgrid/sendgrid-csharp into us1882
Conflicts:
SendGrid/SendGridMail/SendGrid.cs
€ý5iM€kbmerge commit€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kb€kbcommit merge
ZZ:q
:q!
Diffstat (limited to 'SendGrid/SendGridMail/Header.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Header.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/SendGrid/SendGridMail/Header.cs b/SendGrid/SendGridMail/Header.cs index c1138d8..860ebed 100755 --- a/SendGrid/SendGridMail/Header.cs +++ b/SendGrid/SendGridMail/Header.cs @@ -7,6 +7,7 @@ namespace SendGridMail {
public class Header : IHeader
{
+ private const string SendgridHeader = "X-Smtpapi";
private readonly HeaderSettingsNode _settings;
public Header()
@@ -16,7 +17,7 @@ namespace SendGridMail public void AddSubVal(string tag, IEnumerable<string> substitutions)
{
- var keys = new List<String> {"data", "sub", tag};
+ var keys = new List<String> {"sub", tag};
_settings.AddArray(keys, substitutions);
}
@@ -24,7 +25,7 @@ namespace SendGridMail {
foreach (var key in identifiers.Keys)
{
- var keys = new List<String> {"data", "unique_args", key};
+ var keys = new List<String> {"unique_args", key};
var value = identifiers[key];
_settings.AddSetting(keys, value);
}
@@ -32,7 +33,7 @@ namespace SendGridMail public void SetCategory(string category)
{
- var keys = new List<String> {"data", "category"};
+ var keys = new List<String> {"category"};
_settings.AddSetting(keys, category);
}
@@ -48,13 +49,13 @@ namespace SendGridMail public void AddFilterSetting(string filter, IEnumerable<string> settings, string value)
{
- var keys = new List<string>() { "data", "filters", filter, "settings" }.Concat(settings).ToList();
+ var keys = new List<string>() {"filters", filter, "settings" }.Concat(settings).ToList();
_settings.AddSetting(keys, value);
}
public void AddHeader(MailMessage mime)
{
- mime.Headers.Add("x-smtpapi", AsJson());
+ mime.Headers.Add(SendgridHeader, AsJson());
}
public String AsJson()
|