System.Net.Mail.SmtpException Class

Represents the exception that is thrown when the System.Net.Mail.SmtpClient is not able to complete a erload:System.Net.Mail.SmtpClient.Send or erload:System.Net.Mail.SmtpClient.SendAsync operation.

See Also: SmtpException Members

Syntax

public class SmtpException : Exception

Remarks

The SmtpException.StatusCode property contains the status code returned by the SMTP server.

Requirements

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