C# Class PostmarkDotNet.PostmarkClient

Afficher le fichier Open project: wildbit/postmark-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
ActivateBounce ( string bounceId ) : PostmarkBounceActivation

Activates a deactivated bounce.

GetBounce ( string bounceId ) : PostmarkBounce

Retrieves a single PostmarkBounce based on a specified ID.

GetBounceDump ( string bounceId ) : PostmarkBounceDump

Returns the raw source of the bounce we accepted. If Postmark does not have a dump for that bounce, it will return an empty string.

GetBounceTags ( ) : IEnumerable

Returns a list of tags used for the current server.

GetBounces ( PostmarkBounceType type, bool inactive, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( PostmarkBounceType type, bool inactive, string emailFilter, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( PostmarkBounceType type, bool inactive, string emailFilter, string tag, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( PostmarkBounceType type, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( PostmarkBounceType type, string emailFilter, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( PostmarkBounceType type, string emailFilter, string tag, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( bool inactive, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( bool inactive, string emailFilter, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( bool inactive, string emailFilter, string tag, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( string emailFilter, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetBounces ( string emailFilter, string tag, int offset, int count ) : PostmarkBounces

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.

GetDeliveryStats ( ) : PostmarkDeliveryStats

Retrieves the bounce-related PostmarkDeliveryStats results for the associated mail server.

GetInboundMessageDetail ( string messageID ) : InboundMessageDetail

Get the full details of a processed inbound message including all fields, attachment names, etc.

GetInboundMessages ( int count, int offset ) : PostmarkInboundMessageList

Return a listing of Inbound sent messages using the filters supported by the API.

GetInboundMessages ( string fromemail, int count, int offset ) : PostmarkInboundMessageList

Return a listing of Inbound sent messages using the filters supported by the API.

GetInboundMessages ( string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList

Return a listing of Inbound sent messages using the filters supported by the API.

GetInboundMessages ( string recipient, string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList

Return a listing of Inbound sent messages using the filters supported by the API.

GetInboundMessages ( string recipient, string fromemail, string subject, string mailboxhash, int count, int offset ) : PostmarkInboundMessageList

Return a listing of Inbound sent messages using the filters supported by the API.

GetOutboundMessageDetail ( string messageID ) : OutboundMessageDetail

Get the full details of a sent message including all fields, raw body, attachment names, etc

GetOutboundMessageDump ( string messageID ) : MessageDump

Get the original raw message dump of on outbound message including all SMTP headers and data.

GetOutboundMessages ( int count, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( int count, int offset, string recipient ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( int count, string subject, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( string subject, int count, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( string recipient, string fromemail, int count, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( string fromemail, string tag, string subject, int count, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

GetOutboundMessages ( string recipient, string fromemail, string tag, string subject, int count, int offset ) : PostmarkOutboundMessageList

Return a listing of Outbound sent messages using the filters supported by the API.

PostmarkClient ( string serverToken ) : System.Collections.Specialized

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com.

PostmarkClient ( string serverToken, bool noSSL ) : System.Collections.Specialized

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com. Extra signature to override https

PostmarkClient ( string serverToken, int timeout ) : System.Collections.Specialized

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com.

SendMessage ( PostmarkMessage message ) : PostmarkResponse

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessage ( TemplatedPostmarkMessage message ) : PostmarkResponse

Send an email using a template associated with your Server.

SendMessage ( string from, string to, string subject, string body ) : PostmarkResponse

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessage ( string from, string to, string subject, string body, NameValueCollection headers ) : PostmarkResponse

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessage ( PostmarkMessage message, Action callback ) : void

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessage ( string from, string to, string subject, string body, Action callback ) : void

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessage ( string from, string to, string subject, string body, NameValueCollection headers, Action callback ) : void

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessages ( ) : IEnumerable

Sends a batch of messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessages ( IEnumerable messages ) : IEnumerable

Sends a batch of messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

SendMessages ( IEnumerable messages, Action callback ) : void

Sends a batch of up to messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.

Private Methods

Méthode Description
BeginGetPostmarkResponse ( Hammock.RestRequest request, Action callback ) : void
BeginGetPostmarkResponses ( Hammock.RestRequest request, Action callback ) : void
CleanPostmarkMessage ( PostmarkMessage message ) : void
GetBouncesImpl ( PostmarkBounceType type, bool inactive, string emailFilter, string tag, int offset, int count ) : PostmarkBounces
GetInboundMessagesImpl ( string recipient, string fromemail, string subject, string mailboxhash, int count, int offset ) : PostmarkInboundMessageList

Implementation to get Inbound messages for the public search APIs

GetOutboundMessagesImpl ( string recipient, string fromemail, string tag, string subject, int count, int offset ) : PostmarkOutboundMessageList

Implementation called to do the actual messages call and return a PostmarkOutboundMessageList

GetPostmarkResponse ( Hammock.RestRequest request ) : PostmarkResponse
GetPostmarkResponseImpl ( Hammock.RestResponseBase response ) : PostmarkResponse
GetPostmarkResponses ( Hammock.RestRequest request ) : IEnumerable
GetPostmarkResponsesImpl ( Hammock.RestResponseBase response ) : IEnumerable
NewBatchedEmailRequest ( ) : Hammock.RestRequest
NewBouncesRequest ( ) : Hammock.RestRequest
NewEmailRequest ( ) : Hammock.RestRequest
NewMessagesRequest ( ) : Hammock.RestRequest
NewTemplatedEmailRequest ( ) : Hammock.RestRequest
PostmarkClient ( ) : System.Collections.Specialized
SetPostmarkMeta ( Hammock.RestBase request ) : void
TryGetPostmarkResponse ( Hammock.RestResponseBase response ) : PostmarkResponse
TryGetPostmarkResponses ( Hammock.RestResponseBase response ) : IEnumerable

Method Details

ActivateBounce() public méthode

Activates a deactivated bounce.
public ActivateBounce ( string bounceId ) : PostmarkBounceActivation
bounceId string The bounce ID
Résultat PostmarkBounceActivation

GetBounce() public méthode

Retrieves a single PostmarkBounce based on a specified ID.
public GetBounce ( string bounceId ) : PostmarkBounce
bounceId string The bounce ID
Résultat PostmarkBounce

GetBounceDump() public méthode

Returns the raw source of the bounce we accepted. If Postmark does not have a dump for that bounce, it will return an empty string.
public GetBounceDump ( string bounceId ) : PostmarkBounceDump
bounceId string The bounce ID
Résultat PostmarkBounceDump

GetBounceTags() public méthode

Returns a list of tags used for the current server.
public GetBounceTags ( ) : IEnumerable
Résultat IEnumerable

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, bool inactive, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, bool inactive, string emailFilter, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, bool inactive, string emailFilter, string tag, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
tag string Filters on the bounce tag
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, string emailFilter, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( PostmarkBounceType type, string emailFilter, string tag, int offset, int count ) : PostmarkBounces
type PostmarkBounceType The type of bounces to filter on
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
tag string Filters on the bounce tag
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( bool inactive, int offset, int count ) : PostmarkBounces
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( bool inactive, string emailFilter, int offset, int count ) : PostmarkBounces
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( bool inactive, string emailFilter, string tag, int offset, int count ) : PostmarkBounces
inactive bool Whether to return only inactive or active bounces; use null to return all bounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
tag string Filters on the bounce tag
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( int offset, int count ) : PostmarkBounces
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( string emailFilter, int offset, int count ) : PostmarkBounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetBounces() public méthode

Retrieves a collection of PostmarkBounce instances along with a sum total of bounces recorded by the server, based on filter parameters.
public GetBounces ( string emailFilter, string tag, int offset, int count ) : PostmarkBounces
emailFilter string Filters based on whether the filter value is contained in the bounce source's email
tag string Filters on the bounce tag
offset int The page offset for the returned results; mandatory
count int The number of results to return by the page offset; mandatory.
Résultat PostmarkBounces

GetDeliveryStats() public méthode

Retrieves the bounce-related PostmarkDeliveryStats results for the associated mail server.
public GetDeliveryStats ( ) : PostmarkDeliveryStats
Résultat PostmarkDeliveryStats

GetInboundMessageDetail() public méthode

Get the full details of a processed inbound message including all fields, attachment names, etc.
public GetInboundMessageDetail ( string messageID ) : InboundMessageDetail
messageID string The MessageID of a message which can be optained either from the initial API send call or a GetInboundMessages call.
Résultat InboundMessageDetail

GetInboundMessages() public méthode

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( int count, int offset ) : PostmarkInboundMessageList
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkInboundMessageList

GetInboundMessages() public méthode

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( string fromemail, int count, int offset ) : PostmarkInboundMessageList
fromemail string Filter by the email address the message is sent from.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkInboundMessageList

GetInboundMessages() public méthode

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList
fromemail string Filter by the email address the message is sent from.
subject string Filter by message subject.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkInboundMessageList

GetInboundMessages() public méthode

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( string recipient, string fromemail, string subject, int count, int offset ) : PostmarkInboundMessageList
recipient string Filter by the recipient(s) of the message.
fromemail string Filter by the email address the message is sent from.
subject string Filter by message subject.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkInboundMessageList

GetInboundMessages() public méthode

Return a listing of Inbound sent messages using the filters supported by the API.
public GetInboundMessages ( string recipient, string fromemail, string subject, string mailboxhash, int count, int offset ) : PostmarkInboundMessageList
recipient string Filter by the recipient(s) of the message.
fromemail string Filter by the email address the message is sent from.
subject string Filter by message subject.
mailboxhash string Filter by mailbox hash that was parsed from the inbound message.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkInboundMessageList

GetOutboundMessageDetail() public méthode

Get the full details of a sent message including all fields, raw body, attachment names, etc
public GetOutboundMessageDetail ( string messageID ) : OutboundMessageDetail
messageID string The MessageID of a message which can be optained either from the initial API send call or a GetOutboundMessages call.
Résultat OutboundMessageDetail

GetOutboundMessageDump() public méthode

Get the original raw message dump of on outbound message including all SMTP headers and data.
public GetOutboundMessageDump ( string messageID ) : MessageDump
messageID string The MessageID of a message which can be optained either from the initial API send call or a GetOutboundMessages call.
Résultat MessageDump

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( int count, int offset ) : PostmarkOutboundMessageList
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( int count, int offset, string recipient ) : PostmarkOutboundMessageList
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
recipient string Filter by the recipient(s) of the message.
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( int count, string subject, int offset ) : PostmarkOutboundMessageList
count int Number of messages to return per call. (required)
subject string Filter by message subject.
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( string subject, int count, int offset ) : PostmarkOutboundMessageList
subject string Filter by message subject.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( string recipient, string fromemail, int count, int offset ) : PostmarkOutboundMessageList
recipient string Filter by the recipient(s) of the message.
fromemail string Filter by the email address the message is sent from.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( string fromemail, string tag, string subject, int count, int offset ) : PostmarkOutboundMessageList
fromemail string Filter by the email address the message is sent from.
tag string Filter by a tag used for the message (messages sent directly through the API only)
subject string Filter by message subject.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

GetOutboundMessages() public méthode

Return a listing of Outbound sent messages using the filters supported by the API.
public GetOutboundMessages ( string recipient, string fromemail, string tag, string subject, int count, int offset ) : PostmarkOutboundMessageList
recipient string Filter by the recipient(s) of the message.
fromemail string Filter by the email address the message is sent from.
tag string Filter by a tag used for the message (messages sent directly through the API only)
subject string Filter by message subject.
count int Number of messages to return per call. (required)
offset int Number of messages to offset/page per call. (required)
Résultat PostmarkOutboundMessageList

PostmarkClient() public méthode

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com.
public PostmarkClient ( string serverToken ) : System.Collections.Specialized
serverToken string The server token.
Résultat System.Collections.Specialized

PostmarkClient() public méthode

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com. Extra signature to override https
public PostmarkClient ( string serverToken, bool noSSL ) : System.Collections.Specialized
serverToken string You can get a server token by signing up at http://www.postmarkapp.com
noSSL bool Skip https usage
Résultat System.Collections.Specialized

PostmarkClient() public méthode

Initializes a new instance of the PostmarkClient class. If you do not have a server token you can request one by signing up to use Postmark: http://postmarkapp.com.
public PostmarkClient ( string serverToken, int timeout ) : System.Collections.Specialized
serverToken string The server token.
timeout int Time to wait for the API in seconds.
Résultat System.Collections.Specialized

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( PostmarkMessage message ) : PostmarkResponse
message PostmarkMessage A prepared message instance.
Résultat PostmarkResponse

SendMessage() public méthode

Send an email using a template associated with your Server.
public SendMessage ( TemplatedPostmarkMessage message ) : PostmarkResponse
message TemplatedPostmarkMessage
Résultat PostmarkResponse

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( string from, string to, string subject, string body ) : PostmarkResponse
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.
Résultat PostmarkResponse

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( string from, string to, string subject, string body, NameValueCollection headers ) : PostmarkResponse
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 NameValueCollection A collection of additional mail headers to send with the message.
Résultat PostmarkResponse

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( PostmarkMessage message, Action callback ) : void
message PostmarkMessage A prepared message instance
callback Action The callback invoked when a response is received from the API
Résultat void

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( string from, string to, string subject, string body, Action callback ) : void
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.
callback Action The callback invoked when a is received from the API
Résultat void

SendMessage() public méthode

Sends a message through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessage ( string from, string to, string subject, string body, NameValueCollection headers, Action callback ) : void
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 NameValueCollection A collection of additional mail headers to send with the message
callback Action The callback invoked when a response is received from the API
Résultat void

SendMessages() public méthode

Sends a batch of messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessages ( ) : IEnumerable
Résultat IEnumerable

SendMessages() public méthode

Sends a batch of messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessages ( IEnumerable messages ) : IEnumerable
messages IEnumerable A prepared message batch.
Résultat IEnumerable

SendMessages() public méthode

Sends a batch of up to messages through the Postmark API. All email addresses must be valid, and the sender must be a valid sender signature according to Postmark. To obtain a valid sender signature, log in to Postmark and navigate to: http://postmarkapp.com/signatures.
public SendMessages ( IEnumerable messages, Action callback ) : void
messages IEnumerable A prepared message batch.
callback Action The callback invoked when a response is received from the API
Résultat void