Click or drag to resize

MailMergeSender Class

Sends MailMergeMessages to an SMTP server. It uses MailKit.Net.Smtp.SmtpClient for low level operations.
Inheritance Hierarchy
SystemObject
  MailMergeLibMailMergeSender

Namespace:  MailMergeLib
Assembly:  MailMergeLib (in MailMergeLib.dll) Version: 5.6.1.0
Syntax
public class MailMergeSender : IDisposable

The MailMergeSender type exposes the following members.

Constructors
  NameDescription
Public methodMailMergeSender
CTOR
Top
Properties
  NameDescription
Public propertyConfig
The settings for a MailMergeSender.
Protected propertyGetInitializedSmtpClientDelegate
Function delegate that returns an initialized SmtpClient using the SmtpClientConfig configuration.
Public propertyIsBusy
Returns true, while a Send method is pending. Entering a Send method while IsBusy will raise an InvalidOperationException.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by MailMergeSender
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSend(MailMergeMessage, Object)
Sends a single mail merge message.
Public methodSendT(MailMergeMessage, IEnumerableT)
Sends mail messages syncronously to all recipients supplied in the data source of the mail merge message.
Public methodSendAsync(MailMergeMessage, Object)
Sends a single mail message asyncronously.
Public methodSendAsyncT(MailMergeMessage, IEnumerableT)
Sends mail messages asynchronously to all recipients supplied in the data source of the mail merge message.
Public methodSendCancel
Cancel any transactions sending or merging mail.
Protected methodSendMimeMessage
This is the procedure taking care of sending the message (or saving to a file, respectively).
Protected methodSendMimeMessageAsync
This is the procedure taking care of sending the message (or saving to a file, respectively).
Protected methodSendMimeMessageToSmtpServer
Sends the MimeMessage to an SMTP server. This is the lowest level of sending a message. Connects and authenticates if necessary, but leaves the connection open.
Protected methodSendMimeMessageToSmtpServerAsync
Sends the MimeMessage to an SMTP server. This is the lowest level of sending a message. Connects and authenficates if necessary, but leaves the connection open.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventOnAfterSend
Event raising after sending a mail message.
Public eventOnBeforeSend
Event raising before sending a mail message.
Public eventOnMergeBegin
Event raising before starting with mail merge.
Public eventOnMergeComplete
Event raising after completing mail merge.
Public eventOnMergeProgress
Event raising during mail merge progress, i.e. after each message sent.
Public eventOnMessageFailure
Event raising when getting the merged MimeMessage of the MailMergeMessage has failed.
Public eventOnSendFailure
Event raising, if an error occurs when sending a mail message.
Public eventOnSmtpAuthenticated
Event raising after the SmtpClient has authenticated on the server.
Public eventOnSmtpConnected
Event raising right after the SmtpClient's connection to the server is up (but not yet authenticated).
Public eventOnSmtpDisconnected
Event raising after the SmtpClient has disconnected from the server.
Top
See Also