C# Class PostmarkDotNet.SystemMailExtensions

Mostra file Open project: wildbit/postmark-dotnet

Public Methods

Method Description
SendMessageAsync ( this client, MailMessage message ) : Task

Send a System.Net.MailMessage (transparently converts to the PostmarkMessage).

SendMessagesAsync ( this client ) : Task>

Send a System.Net.MailMessage(s) (transparently converts to the PostmarkMessages).

Private Methods

Method Description
ConvertSystemMailMessage ( MailMessage message ) : 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.

GetHtmlBodyFromAlternateViews ( PostmarkMessage m, MailMessage message ) : void
GetMailMessageBcc ( PostmarkMessage m, MailMessage message ) : void
GetMailMessageCc ( PostmarkMessage m, MailMessage message ) : void
GetMailMessageRecipients ( PostmarkMessage m, MailMessage message ) : void
GetMailMessageTo ( PostmarkMessage m, MailMessage message ) : void
GetStringFromView ( System.Net.Mail.AttachmentBase view ) : string
ReadStream ( Stream input, int bufferSize ) : byte[]
resolveViewEncoding ( System.Net.Mail.AttachmentBase view, Encoding fallbackEncoding ) : Encoding

Method Details

SendMessageAsync() public static method

Send a System.Net.MailMessage (transparently converts to the PostmarkMessage).
public static SendMessageAsync ( this client, MailMessage message ) : Task
client this
message System.Net.Mail.MailMessage
return Task

SendMessagesAsync() public static method

Send a System.Net.MailMessage(s) (transparently converts to the PostmarkMessages).
public static SendMessagesAsync ( this client ) : Task>
client this
return Task>