Méthode | Description | |
---|---|---|
AddAttachment ( Stream stream, string name ) : void |
Add a stream as an attachment to the message
|
|
AddAttachment ( Stream stream, string name, string contentType ) : void |
Add a stream as an attachment to the message
|
|
AddAttachment ( Stream stream, string name, string contentType, string contentId ) : void |
Add a stream as an attachment to the message
|
|
AddAttachment ( string filePath ) : void |
Add an attachment to the message.
|
|
AddBcc ( string>.IDictionary |
Add to the 'Bcc' address.
|
|
AddBcc ( IEnumerable |
Add to the 'Bcc' address.
|
|
AddBcc ( string address ) : void |
Add to the 'Bcc' address.
|
|
AddCc ( string>.IDictionary |
Add to the 'CC' address.
|
|
AddCc ( IEnumerable |
Add to the 'CC' address.
|
|
AddCc ( string address ) : void |
Add to the 'CC' address.
|
|
AddHeaders ( string>.IDictionary |
Add custom headers to the message
|
|
AddSubstitution ( string replacementTag, List |
Defines a mapping between a replacement string in the text of the message to a list of substitution values to be used, one per each recipient, in the same order as the recipients were added.
|
|
AddTo ( string>.IDictionary |
Add to the 'To' address.
|
|
AddTo ( IEnumerable |
Add to the 'To' address.
|
|
AddTo ( string address ) : void |
Add to the 'To' address.
|
|
AddUniqueIdentifiers ( string>.IDictionary |
This adds parameters and values that will be passed back through SendGrid's Event API if an event notification is triggered by this email.
|
|
CreateMimeMessage ( ) : |
Used by the Transport object to create a MIME for SMTP
|
|
DisableBcc ( ) : void |
Disable Bcc app
|
|
DisableBypassListManagement ( ) : void |
Disable the Bypass List Management app
|
|
DisableClickTracking ( ) : void |
Disable the click tracking app
|
|
DisableFooter ( ) : void |
Disable the footer app
|
|
DisableGoogleAnalytics ( ) : void |
Disable the Google Analytics app
|
|
DisableGravatar ( ) : void |
Disable the gravatar app
|
|
DisableOpenTracking ( ) : void |
Disable the open tracking app
|
|
DisableSpamCheck ( ) : void |
Disable the spam check
|
|
DisableTemplate ( ) : void |
Disable the templates app
|
|
DisableUnsubscribe ( ) : void |
Disable the unsubscribe app
|
|
EnableBcc ( string email ) : void |
Automatically sends a blind carbon copy to an address for every e-mail sent, without adding that address to the header.
|
|
EnableBypassListManagement ( ) : void |
Enabing this app will bypass the normal unsubscribe / bounce / spam report checks and queue the e-mail for delivery.
|
|
EnableClickTracking ( bool includePlainText = false ) : void |
Causes all links to be overwritten, shortened, and pointed to SendGrid's servers so clicks will be tracked.
|
|
EnableFooter ( string text = null, string html = null ) : void |
Attaches a message at the footer of the email
|
|
EnableGoogleAnalytics ( string source, string medium, string term, string content = null, string campaign = null ) : void |
Re-writes links to integrate with Google Analytics
|
|
EnableGravatar ( ) : void |
Inserts the gravatar image of the sender to the bottom of the message
|
|
EnableOpenTracking ( ) : void |
Adds an invisible image to the end of the email which can track e-mail opens.
|
|
EnableSpamCheck ( int score = 5, string url = null ) : void |
Provides notification when emails are detected that exceed a predefined spam threshold.
|
|
EnableTemplate ( string html ) : void |
Wraps an HTML template around your email content.
|
|
EnableUnsubscribe ( string replace ) : void |
Allows SendGrid to manage unsubscribes and ensure these users don't get future emails from the sender
|
|
EnableUnsubscribe ( string text, string html ) : void |
Allows SendGrid to manage unsubscribes and ensure these users don't get future emails from the sender
|
|
GetInstance ( ) : |
Creates an instance of SendGrid's custom message object
|
|
GetInstance ( |
Creates an instance of SendGrid's custom message object with mail parameters
|
|
GetRecipients ( ) : IEnumerable |
GetRecipients returns a list of all the recipients by retrieving the to, cc, and bcc lists.
|
|
SetCategories ( IEnumerable |
|
|
SetCategory ( string category ) : void |
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.
|
Méthode | Description | |
---|---|---|
InitializeFilters ( ) : string>.Dictionary |
||
Mail ( IHeader header ) : System | ||
Mail ( |
||
SaveMessage ( string directory ) : void |
Helper function lets us look at the mime before it is sent
|
public AddAttachment ( Stream stream, string name ) : void | ||
stream | Stream | Stream of file to be attached |
name | string | Name of file to be attached |
Résultat | void |
public AddAttachment ( Stream stream, string name, string contentType ) : void | ||
stream | Stream | Stream of file to be attached |
name | string | Name of file to be attached |
contentType | string | Content type of stream |
Résultat | void |
public AddAttachment ( Stream stream, string name, string contentType, string contentId ) : void | ||
stream | Stream | Stream of file to be attached |
name | string | Name of file to be attached |
contentType | string | Content type of stream |
contentId | string | ContentId for embedding images |
Résultat | void |
public AddAttachment ( string filePath ) : void | ||
filePath | string | a fully qualified file path as a string |
Résultat | void |
public AddBcc ( string>.IDictionary |
||
addresssInfo | string>.IDictionary | the dictionary keys are the email addresses, which points to a dictionary of /// key substitutionValues pairs mapping to other address codes, such as { [email protected] => { 'DisplayName' => 'Mr Foo' } } |
Résultat | void |
public AddBcc ( IEnumerable |
||
addresses | IEnumerable |
a list of emails as an array of strings. |
Résultat | void |
public AddBcc ( string address ) : void | ||
address | string | a single email as the input eg "[email protected]" |
Résultat | void |
public AddCc ( string>.IDictionary |
||
addresssInfo | string>.IDictionary | the dictionary keys are the email addresses, which points to a dictionary of /// key substitutionValues pairs mapping to other address codes, such as { [email protected] => { 'DisplayName' => 'Mr Foo' } } |
Résultat | void |
public AddCc ( IEnumerable |
||
addresses | IEnumerable |
a list of email addresses as strings |
Résultat | void |
public AddCc ( string address ) : void | ||
address | string | a single email address eg "[email protected]" |
Résultat | void |
public AddHeaders ( string>.IDictionary |
||
headers | string>.IDictionary | key substitutionValues pairs |
Résultat | void |
public AddSubstitution ( string replacementTag, List |
||
replacementTag | string | the string in the email that you'll replace eg. '-name-' |
substitutionValues | List |
a list of values that will be substituted in for the replacementTag, one for each recipient |
Résultat | void |
public AddTo ( string>.IDictionary |
||
addresssInfo | string>.IDictionary | the dictionary keys are the email addresses, which points to a dictionary of /// key substitutionValues pairs mapping to other address codes, such as { [email protected] => { 'DisplayName' => 'Mr Foo' } } |
Résultat | void |
public AddTo ( IEnumerable |
||
addresses | IEnumerable |
list of email addresses as strings |
Résultat | void |
public AddTo ( string address ) : void | ||
address | string | single string eg. '[email protected]' |
Résultat | void |
public AddUniqueIdentifiers ( string>.IDictionary |
||
identifiers | string>.IDictionary | parameter substitutionValues pairs to be passed back on event notification |
Résultat | void |
public CreateMimeMessage ( ) : |
||
Résultat |
public DisableBypassListManagement ( ) : void | ||
Résultat | void |
public EnableBcc ( string email ) : void | ||
string | A single email recipient | |
Résultat | void |
public EnableBypassListManagement ( ) : void | ||
Résultat | void |
public EnableClickTracking ( bool includePlainText = false ) : void | ||
includePlainText | bool | true if links found in plain text portions of the message are to be overwritten |
Résultat | void |
public EnableFooter ( string text = null, string html = null ) : void | ||
text | string | Message for the plain text body of the email |
html | string | Message for the HTML body of the email |
Résultat | void |
public EnableGoogleAnalytics ( string source, string medium, string term, string content = null, string campaign = null ) : void | ||
source | string | Name of the referrer source (e.g. Google, SomeDomain.com, NewsletterA) |
medium | string | Name of the marketing medium (e.g. Email) |
term | string | Identify paid keywords |
content | string | Use to differentiate ads |
campaign | string | Name of the campaign |
Résultat | void |
public EnableSpamCheck ( int score = 5, string url = null ) : void | ||
score | int | Emails with a SpamAssassin score over this substitutionValues will be considered spam and not be delivered. |
url | string | SendGrid will send an HTTP POST request to this url when a message is detected as spam |
Résultat | void |
public EnableTemplate ( string html ) : void | ||
html | string | HTML that your emails will be wrapped in, containing a body replacementTag. |
Résultat | void |
public EnableUnsubscribe ( string replace ) : void | ||
replace | string | Tag in the message body to be replaced with the unsubscribe link and message |
Résultat | void |
public EnableUnsubscribe ( string text, string html ) : void | ||
text | string | string for the plain text email body showing what you want the message to look like. |
html | string | string for the HTML email body showing what you want the message to look like. |
Résultat | void |
public static GetInstance ( |
||
from | The email address of the sender | |
to | An array of the recipients | |
cc | Supported over SMTP, with future plans for support in the Web transport | |
bcc | Blind recipients | |
subject | string | The subject of the message |
html | string | the html content for the message |
text | string | the plain text part of the message |
Résultat |
public SetCategories ( IEnumerable |
||
categories | IEnumerable |
|
Résultat | void |
public SetCategory ( string category ) : void | ||
category | string | categories applied to the message |
Résultat | void |