PowerTCP Mail for .NET
MailMessage Class Members
Fields  Properties  Methods 


The following tables list the members exposed by MailMessage.

Public Constructors
 NameDescription
Public ConstructorMailMessage ConstructorOverloaded.   
Top
Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic)MaxEncodedLineLength The maximum length for an encoded email line. Header lines are "folded" IAW RFC 2822. Body text will have CR/LF's inserted between encoded characters.  
Top
Public Properties
 NameDescription
Public PropertyAttachments Get a generic List containing all the Attachments within this part and sub-parts. (Inherited from Dart.Mail.Multipart)
Public PropertyBcc Gets or sets the email address(es) of the "blind carbon-copy" recipient(s).  
Public PropertyBitEncoding Gets the bit encoding of the message (SevenBit, EightBit, or Binary only).  
Public PropertyCc Gets or sets the email address(es) of the "carbon-copy" recipient(s).  
Public PropertyContentType Gets or sets the "Content-Type" header field for the part. (Inherited from Dart.Mail.Part)
Public PropertyDate Gets and sets the "Date:" header field.  
Public PropertyFrom Gets or sets the email address of who the email is from.  
Public PropertyHeadersProvides a Part.Headers instance that lists all unique header fields. (Inherited from Dart.Mail.Part)
Public PropertyHtml Gets or sets the HTML text body. (Inherited from Dart.Mail.Multipart)
Public PropertyIsMime Gets or sets a value that controls the use of MIME encoding.  
Public PropertyIsSecureReturns false if SecureEncoding is SecureEncoding.None, otherwise true.  
Public PropertyLength Returns the approximate Length of the encoded part. (Inherited from Dart.Mail.Multipart)
Public PropertyPartsA Part list that contains all the parts in the Multipart. (Inherited from Dart.Mail.Multipart)
Public PropertyPriority Gets or sets the Priority of the message.  
Public PropertyReplyTo Gets or sets the email address(es) of where any reply should be sent.  
Public PropertyResources Get a generic List containing all the Resources within this part and sub-parts. (Inherited from Dart.Mail.Multipart)
Public PropertySecureEncoding Indicates the type of S/MIME encoding exposed by the header. Any "inner" encoding is unknown.  
Public PropertySender Gets or sets the email address of the sender of the email.  
Public PropertySubject Gets or sets the value of the "Subject" header field.  
Public PropertyTag Gets or sets an object that stores any user data. (Inherited from Dart.Mail.Part)
Public PropertyText Gets or sets the plain text body. (Inherited from Dart.Mail.Multipart)
Public PropertyTo Gets or sets the email address(es) of the primary recipient(s).  
Top
Public Methods
 NameDescription
Public MethodClearOverridden. Reinitializes the MailMessage to default values. IsMime is set to true. Date is set to DateTime.Now.  
Public MethodCloneOverridden. Creates a deep copy of the MailMessage, but deep/shallow copies of its Parts. Attachments and Resources are shallow copies, Textparts and Htmlparts are deep copies.  
Public MethodDisposeOverloaded.  Releases all resources associated with the object. (Inherited from Dart.Mail.Multipart)
Public MethodFindHtmlFinds the first Htmlpart, recursively searching Multipart.Parts (depth before breadth). (Inherited from Dart.Mail.Multipart)
Public MethodFindParentPerforms a recursive search to find the "parent" Part of the specified child within this Multipart. (Inherited from Dart.Mail.Multipart)
Public MethodFindTextFinds the first Textpart, recursively searching Multipart.Parts (depth before breadth). (Inherited from Dart.Mail.Multipart)
Public MethodForward Creates a forwarded Message.  
Public MethodGetContentEncodingStreamOverridden.  Used to encode message content.  
Public MethodGetDecodingExceptions Returns Exceptions created during decoding. (Inherited from Dart.Mail.Part)
Public MethodGetEncodingStreamReturns a Stream that encodes when System.IO.Stream.Read(System.Byte[],System.Int32,System.Int32) is used and decodes when System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) is used. (Inherited from Dart.Mail.Part)
Public MethodGetObjectData This method supports the .NET infrastructure and is not meant to be called directly from your code.  
Public MethodOpenOverloaded.  Decodes the provided Stream and populates the Part.  
Public MethodReply Creates a reply message by inserting a new Textpart. Leaves the original parts unmodified.  
Public MethodReplyAll Creates a reply message by inserting a new Textpart. Leaves the original parts unmodified. Replies to the sender and CC's all recipients.  
Public MethodReplyAllInline Creates a reply message by prepending the reply text/HTML and separators to the original text/HTML. Replies to the sender and CC's all recipients.  
Public MethodReplyInline Creates a reply message by prepending the reply text/HTML and separators to the original text/HTML.  
Public MethodSaveOverloaded.  Encodes the MIME entity and saves it to the specified stream.  
Public MethodSecureDecodeOverloaded. Decode the S/MIME encoded MailMessage.  
Public MethodSecureEncryptOverloaded. Encrypt the MailMessage using S/MIME encoding.  
Public MethodSecureSignOverloaded. Sign the MailMessage using S/MIME encoding.  
Public MethodToArray Returns the encoded MIME entity as a byte array. (Inherited from Dart.Mail.Part)
Public MethodToStringOverloaded.  Returns the MIME entity as a String. (Inherited from Dart.Mail.Part)
Top
See Also

Reference

MailMessage Class
Dart.Mail Namespace


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic