summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/ISendGrid.cs
diff options
context:
space:
mode:
authorCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-16 22:29:37 -0800
committerCJ Buchmann <cj.buchmann@sendgrid.com>2012-01-16 22:29:37 -0800
commitf5fd9054b23d5f8c4c915da36ad2eaa59f302918 (patch)
treeeba1d516315f7ee816b4701f93c941a6b1f1f6e0 /SendGrid/SendGridMail/ISendGrid.cs
parentecd8418122dd4153dfd34860e0690ca7a5f91c3e (diff)
downloadsendgrid-csharp-f5fd9054b23d5f8c4c915da36ad2eaa59f302918.zip
sendgrid-csharp-f5fd9054b23d5f8c4c915da36ad2eaa59f302918.tar.gz
sendgrid-csharp-f5fd9054b23d5f8c4c915da36ad2eaa59f302918.tar.bz2
Finished writing code examples for SMTP and REST and also cleaned up and refactored a large portion of code
Diffstat (limited to 'SendGrid/SendGridMail/ISendGrid.cs')
-rwxr-xr-xSendGrid/SendGridMail/ISendGrid.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/SendGrid/SendGridMail/ISendGrid.cs b/SendGrid/SendGridMail/ISendGrid.cs
index 3be707f..08d109c 100755
--- a/SendGrid/SendGridMail/ISendGrid.cs
+++ b/SendGrid/SendGridMail/ISendGrid.cs
@@ -1,11 +1,7 @@
using System;
using System.Collections.Generic;
-using System.IO;
-using System.Linq;
using System.Net;
using System.Net.Mail;
-using System.Net.Mime;
-using System.Text;
namespace SendGridMail
{
@@ -219,10 +215,13 @@ namespace SendGridMail
/// </summary>
/// <param name="text">String for the plain text email body showing what you want the message to look like.</param>
/// <param name="html">String for the HTML email body showing what you want the message to look like.</param>
+ void EnableUnsubscribe(String text, String html);
+
+ /// <summary>
+ /// Allow's SendGrid to manage unsubscribes and ensure these users don't get future emails from the sender
+ /// </summary>
/// <param name="replace">Tag in the message body to be replaced with the unsubscribe link and message</param>
- /// <param name="url">URL for a landing page, if you have your own prepared</param>
- /// <param name="landing">HTML body of a landing page created by SendGrid for you</param>
- void EnableUnsubscribe(String text, String html, String replace, String url, String landing);
+ void EnableUnsubscribe(String replace);
/// <summary>
/// Attaches a message at the footer of the email