C# Class PostmarkDotNet.PostmarkMessage

A message destined for the Postmark service.
Mostra file Open project: wildbit/postmark-dotnet Class Usage Examples

Public Methods

Method Description
PostmarkMessage ( ) : System
PostmarkMessage ( string from, string to, string subject, string body, string>.IDictionary headers = null ) : System

Initializes a new instance of the PostmarkMessage class.

PostmarkMessage ( ) : System.Collections.Specialized
PostmarkMessage ( MailMessage message ) : System.Collections.Specialized

Initializes a new instance of the PostmarkMessage class based on an existing MailMessage instance. Only the first recipient of the message is added to the PostmarkMessage instance.

PostmarkMessage ( string from, string to, string subject, string body ) : System.Collections.Specialized

Initializes a new instance of the PostmarkMessage class.

PostmarkMessage ( string from, string to, string subject, string body, NameValueCollection headers ) : System.Collections.Specialized

Initializes a new instance of the PostmarkMessage class.

Protected Methods

Method Description
GetHtmlBodyFromAlternateViews ( MailMessage message ) : void

Method Details

GetHtmlBodyFromAlternateViews() protected method

protected GetHtmlBodyFromAlternateViews ( MailMessage message ) : void
message System.Net.Mail.MailMessage
return void

PostmarkMessage() public method

public PostmarkMessage ( ) : System
return System

PostmarkMessage() public method

Initializes a new instance of the PostmarkMessage class.
public PostmarkMessage ( string from, string to, string subject, string body, string>.IDictionary headers = null ) : System
from string An email address for a sender.
to string An email address for a recipient.
subject string The message subject line.
body string The message body.
headers string>.IDictionary A collection of additional mail headers to send with the message. (optional)
return System

PostmarkMessage() public method

public PostmarkMessage ( ) : System.Collections.Specialized
return System.Collections.Specialized

PostmarkMessage() public method

Initializes a new instance of the PostmarkMessage class based on an existing MailMessage instance. Only the first recipient of the message is added to the PostmarkMessage instance.
public PostmarkMessage ( MailMessage message ) : System.Collections.Specialized
message System.Net.Mail.MailMessage The existing message.
return System.Collections.Specialized

PostmarkMessage() public method

Initializes a new instance of the PostmarkMessage class.
public PostmarkMessage ( string from, string to, string subject, string body ) : System.Collections.Specialized
from string An email address for a sender.
to string An email address for a recipient.
subject string The message subject line.
body string The message body.
return System.Collections.Specialized

PostmarkMessage() public method

Initializes a new instance of the PostmarkMessage class.
public PostmarkMessage ( string from, string to, string subject, string body, NameValueCollection headers ) : System.Collections.Specialized
from string An email address for a sender.
to string An email address for a recipient.
subject string The message subject line.
body string The message body.
headers System.Collections.Specialized.NameValueCollection A collection of additional mail headers to send with the message.
return System.Collections.Specialized