summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/WEBAPI.cs
diff options
context:
space:
mode:
authorBrandon West <brawest@gmail.com>2014-01-06 14:29:57 -0700
committerBrandon West <brawest@gmail.com>2014-01-06 14:29:57 -0700
commitc5f9ddb7b135013547c03ce576e6443a72beef01 (patch)
tree72126eca67ccd3233d8250b24c07f727220523f1 /SendGrid/Example/WEBAPI.cs
parent96c7b116a9db2d184f07e659b837145ebe10765d (diff)
downloadsendgrid-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/Example/WEBAPI.cs')
-rw-r--r--SendGrid/Example/WEBAPI.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/SendGrid/Example/WEBAPI.cs b/SendGrid/Example/WEBAPI.cs
index d3f8d4a..5b3132d 100644
--- a/SendGrid/Example/WEBAPI.cs
+++ b/SendGrid/Example/WEBAPI.cs
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using SendGridMail;
-using SendGridMail.Transport;
namespace Example
{
@@ -452,7 +451,7 @@ namespace Example
//There should be one value for each recipient in the To list
var substitutionValues = new List<String> { "Mr Foo", "Mrs Raz" };
- message.AddSubVal(replacementKey, substitutionValues);
+ message.AddSubstitution(replacementKey, substitutionValues);
//create an instance of the SMTP transport mechanism
var transportInstance = Web.GetInstance(new NetworkCredential(_username, _password));
@@ -492,7 +491,7 @@ namespace Example
identifiers["customer"] = "someone";
identifiers["location"] = "somewhere";
- message.AddUniqueIdentifiers(identifiers);
+ message.AddUniqueArgs(identifiers);
//create an instance of the SMTP transport mechanism
var transportInstance = Web.GetInstance(new NetworkCredential(_username, _password));