C# Class Papercut.Smtp.Mime.MimeEntity

This class represents a Mime entity.
Mostra file Open project: seif/papercut-web Class Usage Examples

Private Properties

Property Type Description
BuildMultiPartMessage void
BuildSinglePartMessage void
CreateAlternateView System.Net.Mail.AlternateView
CreateAttachment System.Net.Mail.Attachment
DecodeBytes string
IsAttachment bool
SetContentType void
SetMessageBody void
ToMailMessageEx MailMessageEx

Public Methods

Method Description
GetEncoding ( ) : Encoding

Gets the body encoding.

MimeEntity ( ) : System

Initializes a new instance of the MimeEntity class.

MimeEntity ( MimeEntity parent ) : System

Initializes a new instance of the MimeEntity class.

ToMailMessageEx ( ) : MailMessageEx

Toes the mail message ex.

TrimBrackets ( string value ) : string

Trims the brackets.

Private Methods

Method Description
BuildMultiPartMessage ( MimeEntity entity, MailMessageEx message ) : void

Builds the multi part message.

BuildSinglePartMessage ( MimeEntity entity, MailMessageEx message ) : void

Builds the single part message.

CreateAlternateView ( MimeEntity view ) : System.Net.Mail.AlternateView

Creates the alternate view.

CreateAttachment ( MimeEntity entity ) : System.Net.Mail.Attachment

Creates the attachment.

DecodeBytes ( byte buffer, Encoding encoding ) : string

Decodes the bytes.

IsAttachment ( MimeEntity child ) : bool

The is attachment.

SetContentType ( ContentType contentType ) : void

Sets the type of the content.

SetMessageBody ( MailMessageEx message, MimeEntity child ) : void

Sets the message body.

ToMailMessageEx ( MimeEntity entity ) : MailMessageEx

Toes the mail message ex.

Method Details

GetEncoding() public method

Gets the body encoding.
public GetEncoding ( ) : Encoding
return System.Text.Encoding

MimeEntity() public method

Initializes a new instance of the MimeEntity class.
public MimeEntity ( ) : System
return System

MimeEntity() public method

Initializes a new instance of the MimeEntity class.
public MimeEntity ( MimeEntity parent ) : System
parent MimeEntity /// The parent. ///
return System

ToMailMessageEx() public method

Toes the mail message ex.
public ToMailMessageEx ( ) : MailMessageEx
return MailMessageEx

TrimBrackets() public static method

Trims the brackets.
public static TrimBrackets ( string value ) : string
value string /// The value. ///
return string