The MailSender type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MailSender()()()() |
Constructor
|
|
MailSender(Queue<(Of <<'(MailMessage>)>>)) |
Constructor
|
Methods
Name | Description | |
---|---|---|
CreateMailMessage |
Build mail message object.
|
|
GetInstance |
Get Mail sender instance.
|
|
IsMessageValid |
Checks if the mail message has valid headers.
|
|
OnMailMessageSent |
Raises mail message sent event.
|
|
OnMailSent |
Raises mail sent event.
|
|
ProcessQueueItem |
Process queue item used to process one mail message in a async scenario. Used whith a thread pool.
|
|
SendMail()()()() |
Processes a mail queue synchronously, sending mail messages on by one.
|
|
SendMail(MailMessage) |
Sends a single mail message.
|
|
SendMail(String, String, String) |
Sends an e-mail message.
|
|
SendMail(MailAddress, String, String, String) |
Sends an e-mail message.
|
|
SendMail(String, String, String, String) |
Sends an e-mail message.
|
|
SendMail(MailAddress, String, String, String, String) |
Sends an e-mail message.
|
Extension Methods
Name | Description | |
---|---|---|
ConvertTo(Type) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo(Type, TypeConverter, Boolean) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)()()()() | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
ConvertTo<(Of <<'(T>)>>)(TypeConverter) | Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.) |
|
GetCurrentStackTrace |
Gets current stack trace information.
(Defined by ObjectExtension.) |
|
GetDebugInformation |
Gets the debug information for currently executing code.
(Defined by ObjectExtension.) |
|
GetExecutingMethodName |
Gets the executing method name.
(Defined by ObjectExtension.) |
|
GetPropertyType |
Gets a property type.
(Defined by ObjectExtension.) |
|
GetPropertyValue |
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.) |
|
PropertyExists |
Check if property exists.
(Defined by ObjectExtension.) |
|
SetPropertyValue |
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.) |
Fields
Name | Description | |
---|---|---|
padLock |
Object used for thread synchronization.
|
Properties
Name | Description | |
---|---|---|
Credentials |
Gets or sets the SMTP credentials.
|
|
DeliveryMethod |
SMTP delivery method; if empty, uses setting from web.config.
|
|
EmailSendingFailedMessage |
Gets or sets a message for e-mail sending failed.
|
|
EnableSSL |
Gets or sets a flag if SSL is enabled.
|
|
Host |
SMTP host; if empty, uses setting from web.config.
|
|
MailFromAddress |
Gets or sets a mail from address.
|
|
MailFromName |
Gets or sets a mail from name.
|
|
MailQueue |
Queue of mail messages to be sent
|
|
Port |
SMTP port; if empty, uses setting from web.config.
|
|
RaiseErrorsOnSend |
Gets or sets a flag if errors are raised on mail send.
|
Events
Name | Description | |
---|---|---|
MailMessageSent |
Triggered when mail messages is sent.
|
|
MailSent |
Triggered when all mail messages are sent.
|