SmtpClient.SendCompleted Event

 

Occurs when an asynchronous e-mail send operation completes.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

member SendCompleted : IEvent<SendCompletedEventHandler,
    AsyncCompletedEventArgs>

The SendCompleted event is raised each time an e-mail message is sent asynchronously when the send operation completes. To send an e-mail message asynchronously, use the SendAsync methods.

SendCompletedEventHandler is the delegate for SendCompleted. The AsyncCompletedEventArgs class provides the event handler with event data.

The following code example demonstrates sending an e-mail message asynchronously.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: