Click or drag to resize

SmtpMail Class

Represents sender, recipients and raw message data in eml format that can be sent via SMTP protocol.
Inheritance Hierarchy
SystemObject
  Limilabs.Client.SMTPSmtpMail

Namespace: Limilabs.Client.SMTP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public class SmtpMail

The SmtpMail type exposes the following members.

Constructors
 NameDescription
Public methodSmtpMail Creates new empty SmtpMail object.
Public methodSmtpMail(String, IEnumerableString, Byte) Creates new SmtpMail object.
Top
Properties
 NameDescription
Public propertyFrom Gets or sets from mail address. Value of this property is used for SMTP's MAIL FROM command.
Public propertyIsMDN Gets or sets the additional information if enclosed message is a MDN. Setting this property changes how validation works as the envelope sender address (SMTP MAIL FROM) of the MDN MUST be null (RFC 3798).
Public propertyRawEmlData Gets or sets the raw message data that can be sent using SMTP protocol. Value of this property, is used for SMTP's DATA or BDAT command. "\r\n." sequence escaping is performed automatically, when needed.
Public propertyTo Gets the collection of mail addresses this message will be sent to. Value of this property is used for SMTP's RCPT TO command.
Top
Methods
 NameDescription
Public methodStatic memberCreateFrom Creates new SmtpMail using specified email. From, To and RawEmlData are initialized using specified email.
Public methodStatic memberCreateFromEml Creates new SmtpMail using specified eml raw data string. From, To and RawEmlData are initialized using parsed eml content.
Public methodStatic memberCreateFromEmlFile Loads raw eml data from file and creates new IMail object. From, To and RawEmlData are initialized using parsed content of a file specified by path.
Public methodStatic memberCreateUsingVERP Creates new SmtpMail using specified email. To and RawEmlData are initialized using specified email. From property is initialized using VERP address containing From and To or Sender.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodForceASCIIMode Forces punycode be used instead of full UTF8 envelope addresses.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVERPify Creates VERP version of the From address.
Top
See Also