SmtpClient Events

The SmtpClient type exposes the following members.

Events
  NameDescription
Public eventBindIPEndPoint
Associates a Socket with a local endpoint.
(Inherited from EmailClient.)
Public eventFailedQueueSending Obsolete.
Adds or removes subscriber for notifications about failed sending operations in smtp queue
Public eventFailedSending
Adds or removes subscriber for notifications about failed sending operations in smtp queue
Public eventOnConnect
The OnConnect event occurs when the clent establishes connection.
(Inherited from EmailClient.)
Public eventSucceededQueueSending Obsolete.
Adds or removes subscriber for notifications about succeeded sending operations in smtp queue
Public eventSucceededSending
Adds or removes subscriber for notifications about succeeded sending of mail messages. Please note, notifications will be invoked from other threads, so you should to implement thread safe event handler. Also note that this event is common to the mail client instance, in case if the client is running in multi-connection mode, messages from all connections will be processed through this event. So the customer has to analyze in his code message from events to understand which message relates to which operation.
See Also