diff options
author | Brandon West <brawest@gmail.com> | 2014-01-06 14:29:57 -0700 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2014-01-06 14:29:57 -0700 |
commit | c5f9ddb7b135013547c03ce576e6443a72beef01 (patch) | |
tree | 72126eca67ccd3233d8250b24c07f727220523f1 /SendGrid/SendGridMail/Transport/Web.cs | |
parent | 96c7b116a9db2d184f07e659b837145ebe10765d (diff) | |
download | sendgrid-csharp-c5f9ddb7b135013547c03ce576e6443a72beef01.zip sendgrid-csharp-c5f9ddb7b135013547c03ce576e6443a72beef01.tar.gz sendgrid-csharp-c5f9ddb7b135013547c03ce576e6443a72beef01.tar.bz2 |
add dependency on Smtpapi library, remove SMTP functionality
Diffstat (limited to 'SendGrid/SendGridMail/Transport/Web.cs')
-rw-r--r-- | SendGrid/SendGridMail/Transport/Web.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs index 0909e34..c99dcf7 100644 --- a/SendGrid/SendGridMail/Transport/Web.cs +++ b/SendGrid/SendGridMail/Transport/Web.cs @@ -7,8 +7,9 @@ using System.Net.Http.Headers; using System.Xml;
using System.Net.Http;
using System.Threading.Tasks;
+using Smtpapi;
-namespace SendGridMail.Transport
+namespace SendGridMail
{
public class Web : ITransport
{
@@ -189,7 +190,7 @@ namespace SendGridMail.Transport new KeyValuePair<String, String>("subject", message.Subject),
new KeyValuePair<String, String>("text", message.Text),
new KeyValuePair<String, String>("html", message.Html),
- new KeyValuePair<String, String>("x-smtpapi", message.Header.AsJson())
+ new KeyValuePair<String, String>("x-smtpapi", message.Header.JsonString())
};
if(message.To != null)
{
|