C# Класс PostmarkDotNet.PostmarkMessage

A message destined for the Postmark service.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
GetHtmlBodyFromAlternateViews ( MailMessage message ) : void

Описание методов

GetHtmlBodyFromAlternateViews() защищенный Метод

protected GetHtmlBodyFromAlternateViews ( MailMessage message ) : void
message System.Net.Mail.MailMessage
Результат void

PostmarkMessage() публичный Метод

public PostmarkMessage ( ) : System
Результат System

PostmarkMessage() публичный Метод

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)
Результат System

PostmarkMessage() публичный Метод

public PostmarkMessage ( ) : System.Collections.Specialized
Результат System.Collections.Specialized

PostmarkMessage() публичный Метод

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.
Результат System.Collections.Specialized

PostmarkMessage() публичный Метод

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.
Результат System.Collections.Specialized

PostmarkMessage() публичный Метод

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.
Результат System.Collections.Specialized