Class SmtpException

SmtpException class

Represents the exception that is thrown when the SmtpClient is not able to complete an operation.

public class SmtpException : AsposeException

Constructors

NameDescription
SmtpException()Initializes a new instance of the SmtpException class
SmtpException(SmtpStatusCode)Initializes a new instance of the SmtpException class
SmtpException(string)Initializes a new instance of the SmtpException class
SmtpException(SmtpStatusCode, string)Initializes a new instance of the SmtpException class
SmtpException(string, Exception)Initializes a new instance of the SmtpException class
SmtpException(string, MailMessage)
SmtpException(string, SendMessagesResult)Initializes a new instance of the SmtpException class
SmtpException(string, Exception, MailMessage)Initializes a new instance of the SmtpException class

Properties

NameDescription
ErrorDetails { get; }Gets extra information aboout error
override Message { get; }Gets a message that describes the current exception.
OperationDetails { get; }Gets extra information aboout error
StatusCode { get; set; }Smtp status code

Methods

NameDescription
override ToString()Returns a string that represents the current object.

See Also