System.Net.Mail.SmtpClient.SendCompleted Event

Occurs when an asynchronous e-mail send operation completes.

Syntax

public event SendCompletedEventHandler SendCompleted

Remarks

The SmtpClient.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 erload:System.Net.Mail.SmtpClient.SendAsync methods.

System.Net.Mail.SendCompletedEventHandler is the delegate for SmtpClient.SendCompleted. The System.ComponentModel.AsyncCompletedEventArgs class provides the event handler with event data.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0