Méthode | Description | |
---|---|---|
AddAttachment ( Stream contentStream, string attachmentName, string contentType = "application/octet-stream", string contentId = null ) : void |
Adds a file attachment stream with inline support.
|
|
AddAttachment ( byte content, string contentType, string attachmentName ) : void |
Adds a file attachment using a byte[] array
|
|
AddAttachment ( byte content, string contentType, string attachmentName, string contentId ) : void |
Adds a file attachment using a byte[] array with inline support
|
|
AddAttachment ( string path ) : void |
Adds a file attachment. Assumes the content type default of "application/octet-stream".
|
|
AddAttachment ( string path, string contentType ) : void |
Adds a file attachment.
|
|
AddAttachment ( string path, string contentType, string contentId ) : void |
Adds a file attachment with an inline image.
|
|
PostmarkMessageBase ( ) : System |
Initializes a new instance of the PostmarkMessage class.
|
|
PostmarkMessageBase ( ) : System.Collections.Specialized |
Initializes a new instance of the PostmarkMessage class.
|
Méthode | Description | |
---|---|---|
GetMailMessageBcc ( MailMessage message ) : void | ||
GetMailMessageCc ( MailMessage message ) : void | ||
GetMailMessageRecipients ( MailMessage message ) : void | ||
GetMailMessageTo ( MailMessage message ) : void | ||
GetStringFromView ( AttachmentBase view ) : string | ||
ReadStream ( Stream input, int bufferSize ) : byte[] | ||
ValidateAttachmentLength ( string content ) : void |
Restrict attacments to 10 mb. The API will do this anyway but this is faster
|
|
ValidateAttachmentPath ( string path ) : void |
Be sure the path to the attachment actually exists
|
|
resolveViewEncoding ( AttachmentBase view, Encoding fallbackEncoding ) : Encoding |
public AddAttachment ( Stream contentStream, string attachmentName, string contentType = "application/octet-stream", string contentId = null ) : void | ||
contentStream | Stream | An opened stream of the file attachments. |
attachmentName | string | The file name assocatiated with the attachment. |
contentType | string | The content type. |
contentId | string | The ContentId for inlined images. |
Résultat | void |
public AddAttachment ( byte content, string contentType, string attachmentName ) : void | ||
content | byte | |
contentType | string | ContentID for inline images. |
attachmentName | string | |
Résultat | void |
public AddAttachment ( byte content, string contentType, string attachmentName, string contentId ) : void | ||
content | byte | |
contentType | string | The content type. |
attachmentName | string | |
contentId | string | The ContentId for inline images. |
Résultat | void |
public AddAttachment ( string path ) : void | ||
path | string | The full path to the file to attach |
Résultat | void |
public AddAttachment ( string path, string contentType ) : void | ||
path | string | The full path to the file to attach |
contentType | string | The content type. |
Résultat | void |
public AddAttachment ( string path, string contentType, string contentId ) : void | ||
path | string | The full path to the file to attach |
contentType | string | The content type. |
contentId | string | ContentID for inline images |
Résultat | void |
protected GetMailMessageBcc ( MailMessage message ) : void | ||
message | MailMessage | |
Résultat | void |
protected GetMailMessageCc ( MailMessage message ) : void | ||
message | MailMessage | |
Résultat | void |
protected GetMailMessageRecipients ( MailMessage message ) : void | ||
message | MailMessage | |
Résultat | void |
protected GetMailMessageTo ( MailMessage message ) : void | ||
message | MailMessage | |
Résultat | void |
protected static GetStringFromView ( AttachmentBase view ) : string | ||
view | AttachmentBase | |
Résultat | string |
public PostmarkMessageBase ( ) : System.Collections.Specialized | ||
Résultat | System.Collections.Specialized |
protected static ReadStream ( Stream input, int bufferSize ) : byte[] | ||
input | Stream | |
bufferSize | int | |
Résultat | byte[] |
protected static ValidateAttachmentLength ( string content ) : void | ||
content | string | |
Résultat | void |
protected static ValidateAttachmentPath ( string path ) : void | ||
path | string | |
Résultat | void |
protected static resolveViewEncoding ( AttachmentBase view, Encoding fallbackEncoding ) : Encoding | ||
view | AttachmentBase | |
fallbackEncoding | Encoding | |
Résultat | Encoding |