summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Transport/Web.cs
diff options
context:
space:
mode:
authorbrandonmwest <brawest@gmail.com>2014-02-07 11:30:42 -0700
committerbrandonmwest <brawest@gmail.com>2014-02-07 11:30:42 -0700
commite4a57fc33b188074613b3296f0ec3a614cce9163 (patch)
treeb95b11802bc82fd92c81a3766997c19076508622 /SendGrid/SendGridMail/Transport/Web.cs
parent96c7b116a9db2d184f07e659b837145ebe10765d (diff)
parent4eeb055fef43e79d623464f6b3b119943949a98c (diff)
downloadsendgrid-csharp-e4a57fc33b188074613b3296f0ec3a614cce9163.zip
sendgrid-csharp-e4a57fc33b188074613b3296f0ec3a614cce9163.tar.gz
sendgrid-csharp-e4a57fc33b188074613b3296f0ec3a614cce9163.tar.bz2
Merge pull request #40 from sendgrid/deprecate_smtp
Deprecate smtp
Diffstat (limited to 'SendGrid/SendGridMail/Transport/Web.cs')
-rw-r--r--SendGrid/SendGridMail/Transport/Web.cs5
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)
{