C# 클래스 PostmarkDotNet.PostmarkMessageBase

A message destined for the Postmark service.
파일 보기 프로젝트 열기: wildbit/postmark-dotnet

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

메소드 상세

AddAttachment() 공개 메소드

Adds a file attachment stream with inline support.
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.
리턴 void

AddAttachment() 공개 메소드

Adds a file attachment using a byte[] array
public AddAttachment ( byte content, string contentType, string attachmentName ) : void
content byte
contentType string ContentID for inline images.
attachmentName string
리턴 void

AddAttachment() 공개 메소드

Adds a file attachment using a byte[] array with inline support
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.
리턴 void

AddAttachment() 공개 메소드

Adds a file attachment. Assumes the content type default of "application/octet-stream".
public AddAttachment ( string path ) : void
path string The full path to the file to attach
리턴 void

AddAttachment() 공개 메소드

Adds a file attachment.
public AddAttachment ( string path, string contentType ) : void
path string The full path to the file to attach
contentType string The content type.
리턴 void

AddAttachment() 공개 메소드

Adds a file attachment with an inline image.
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
리턴 void

GetMailMessageBcc() 보호된 메소드

protected GetMailMessageBcc ( MailMessage message ) : void
message MailMessage
리턴 void

GetMailMessageCc() 보호된 메소드

protected GetMailMessageCc ( MailMessage message ) : void
message MailMessage
리턴 void

GetMailMessageRecipients() 보호된 메소드

protected GetMailMessageRecipients ( MailMessage message ) : void
message MailMessage
리턴 void

GetMailMessageTo() 보호된 메소드

protected GetMailMessageTo ( MailMessage message ) : void
message MailMessage
리턴 void

GetStringFromView() 보호된 정적인 메소드

protected static GetStringFromView ( AttachmentBase view ) : string
view AttachmentBase
리턴 string

PostmarkMessageBase() 공개 메소드

Initializes a new instance of the PostmarkMessage class.
public PostmarkMessageBase ( ) : System
리턴 System

PostmarkMessageBase() 공개 메소드

Initializes a new instance of the PostmarkMessage class.
public PostmarkMessageBase ( ) : System.Collections.Specialized
리턴 System.Collections.Specialized

ReadStream() 보호된 정적인 메소드

protected static ReadStream ( Stream input, int bufferSize ) : byte[]
input Stream
bufferSize int
리턴 byte[]

ValidateAttachmentLength() 보호된 정적인 메소드

Restrict attacments to 10 mb. The API will do this anyway but this is faster
protected static ValidateAttachmentLength ( string content ) : void
content string
리턴 void

ValidateAttachmentPath() 보호된 정적인 메소드

Be sure the path to the attachment actually exists
protected static ValidateAttachmentPath ( string path ) : void
path string
리턴 void

resolveViewEncoding() 보호된 정적인 메소드

protected static resolveViewEncoding ( AttachmentBase view, Encoding fallbackEncoding ) : Encoding
view AttachmentBase
fallbackEncoding Encoding
리턴 Encoding