Events

Imap.Notification event 

The Imap.Notification event is raised when a notification is received from the IMAP server. Use it to get notified about changes in the current working folder

Tip: For sample code, see Getting list of changes.

Smtp.SendingMessage event 

The Smtp.SendingMessage event is raised when a message is about to be sent.

Smtp.RejectedRecipient event 

The RejectedRecipient event is raised when a recipient is rejected by the SMTP server when calling the Smtp.Send method.

Tip: For more information and sample code, see Handling rejected recipients.

ValidatingCertificate event 

The ValidatingCertificate event is raised when a server certificate is about to be validated when connecting to a server using TLS/SSL protocol. It's available on Smtp, Imap, Pop3 and Ews objects.

By default, a server certificate is validated automatically using Windows CryptoAPI. Use this event if you need to examine and validate the server certificate yourself

Tip: For sample code, see Custom certificate validation.

TransferProgress event 

The TransferProgress event is raised when data is send or received. It's available on Smtp, Imap and Pop3 objects. Use it to get notified about the current progress.

CommandSent event 

The CommandSent event is raised when a command is send to the server. It's available on Smtp, Imap and Pop3 objects.

Tip: To create a communication log, use LogWriter instead - it's much more powerful.

ResponseRead event 

The ResponseRead event is raised when a response is received from the server. It's available on Smtp, Imap and Pop3 objects.

Tip: To create a communication log, use LogWriter instead - it's much more powerful.