The MailSender type exposes the following members.

Constructors

  Name Description
Protected method MailSender()()()()
Constructor
Protected method MailSender(Queue<(Of <<'(MailMessage>)>>))
Constructor

Methods

  Name Description
Public method CreateMailMessage
Build mail message object.
Public method Static member GetInstance
Get Mail sender instance.
Public method IsMessageValid
Checks if the mail message has valid headers.
Protected method OnMailMessageSent
Raises mail message sent event.
Protected method OnMailSent
Raises mail sent event.
Protected method ProcessQueueItem
Process queue item used to process one mail message in a async scenario. Used whith a thread pool.
Public method SendMail()()()()
Processes a mail queue synchronously, sending mail messages on by one.
Public method SendMail(MailMessage)
Sends a single mail message.
Public method SendMail(String, String, String)
Sends an e-mail message.
Public method SendMail(MailAddress, String, String, String)
Sends an e-mail message.
Public method SendMail(String, String, String, String)
Sends an e-mail message.
Public method SendMail(MailAddress, String, String, String, String)
Sends an e-mail message.

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Protected field Static member padLock
Object used for thread synchronization.

Properties

  Name Description
Public property Credentials
Gets or sets the SMTP credentials.
Public property DeliveryMethod
SMTP delivery method; if empty, uses setting from web.config.
Public property EmailSendingFailedMessage
Gets or sets a message for e-mail sending failed.
Public property EnableSSL
Gets or sets a flag if SSL is enabled.
Public property Host
SMTP host; if empty, uses setting from web.config.
Public property MailFromAddress
Gets or sets a mail from address.
Public property MailFromName
Gets or sets a mail from name.
Public property MailQueue
Queue of mail messages to be sent
Public property Port
SMTP port; if empty, uses setting from web.config.
Public property RaiseErrorsOnSend
Gets or sets a flag if errors are raised on mail send.

Events

  Name Description
Public event MailMessageSent
Triggered when mail messages is sent.
Public event MailSent
Triggered when all mail messages are sent.

See Also