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/IHeader.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/IHeader.cs')
-rw-r--r-- | SendGrid/SendGridMail/IHeader.cs | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/SendGrid/SendGridMail/IHeader.cs b/SendGrid/SendGridMail/IHeader.cs deleted file mode 100644 index 610de72..0000000 --- a/SendGrid/SendGridMail/IHeader.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Mail;
-using System.Text;
-
-namespace SendGridMail
-{
- /// <summary>
- /// Represents the additional functionality to add SendGrid specific mail headers
- /// </summary>
- public interface IHeader
- {
- /// <summary>
- /// Gets the array of recipient addresses from the X-SMTPAPI header
- /// </summary>
- IEnumerable<string> To { get; }
-
- /// <summary>
- /// This adds a substitution value to be used during the mail merge. Substitutions
- /// will happen in order added, so calls to this should match calls to addTo in the mail message.
- /// </summary>
- /// <param name="tag">string to be replaced in the message</param>
- /// <param name="substitutions">substitutions to be made, one per recipient</param>
- void AddSubVal(String tag, IEnumerable<String> substitutions);
-
- /// <summary>
- /// Adds a substitution section to be used during the mail merge.
- /// </summary>
- /// <param name="tag">string to be replaced with the section in the message</param>
- /// <param name="text">The text of the section. May include substituion tags.</param>
- void AddSection(String tag, String text);
-
- /// <summary>
- /// This adds the "to" array to the X-SMTPAPI header so that multiple recipients
- /// may be addressed in a single email. (but they each get their own email, instead of a single email with multiple TO: addressees)
- /// </summary>
- /// <param name="addresses">List of email addresses</param>
- void AddTo(IEnumerable<string> addresses);
-
- /// <summary>
- /// This adds parameters and values that will be bassed back through SendGrid's
- /// Event API if an event notification is triggered by this email.
- /// </summary>
- /// <param name="identifiers">parameter value pairs to be passed back on event notification</param>
- void AddUniqueIdentifier(IDictionary<String, String> identifiers);
-
- /// <summary>
- /// This sets the category for this email. Statistics are stored on a per category
- /// basis, so this can be useful for tracking on a per group basis.
- /// </summary>
- /// <param name="category">categories applied to the message</param>
- void SetCategory(String category);
-
- /// <summary>
- /// This sets the categories for this email. Statistics are stored on a per category
- /// basis, so this can be useful for tracking on a per group basis.
- /// </summary>
- /// <param name="categories">categories applied to the message</param>
- void SetCategories(IEnumerable<string> categories);
-
- /// <summary>
- /// Shortcut method for enabling a filter.
- /// </summary>
- /// <param name="filter">The name of the filter to enable</param>
- void Enable(String filter);
-
- /// <summary>
- /// Shortcut method for disabling a filter.
- /// </summary>
- /// <param name="filter">The name of the filter to disable</param>
- void Disable(String filter);
-
- /// <summary>
- /// Allows you to specify a filter setting. You can find a list of filters and settings here:
- /// http://docs.sendgrid.com/documentation/api/web-api/filtersettings/
- /// </summary>
- /// <param name="filter">The name of the filter to set</param>
- /// <param name="settings">The multipart name of the parameter being set</param>
- /// <param name="value">The value that the settings name will be assigning</param>
- void AddFilterSetting(String filter, IEnumerable<String> settings, String value);
-
- /// <summary>
- /// Attaches the SendGrid headers to the MIME.
- /// </summary>
- /// <param name="mime">the MIME to which we are attaching</param>
- void AddHeader(MailMessage mime);
-
- /// <summary>
- /// Converts the filter settings into a JSON string.
- /// </summary>
- /// <returns>String representation of the SendGrid headers</returns>
- String AsJson();
- }
-}
|