SmtpException

SmtpException constructor (1 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(SmtpStatusCode statusCode)
Parameter Type Description
statusCode SmtpStatusCode Smtp status code

See Also


SmtpException constructor (2 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(SmtpStatusCode statusCode, string message)
Parameter Type Description
statusCode SmtpStatusCode Smtp status code
message String Error message

See Also


SmtpException constructor (3 of 8)

Initializes a new instance of the SmtpException class

public SmtpException()

See Also


SmtpException constructor (4 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(string message)
Parameter Type Description
message String Error message

See Also


SmtpException constructor (5 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(string message, SendMessagesResult result)
Parameter Type Description
message String Error message
result SendMessagesResult Operation result

See Also


SmtpException constructor (6 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(string message, Exception innerException)
Parameter Type Description
message String Error message
innerException Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

See Also


SmtpException constructor (7 of 8)

Initializes a new instance of the SmtpException class

public SmtpException(string message, Exception innerException, MailMessage mailMessage)
Parameter Type Description
message String Error message
innerException Exception The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
mailMessage MailMessage

See Also


SmtpException constructor (8 of 8)

public SmtpException(string message, MailMessage mailMessage)

See Also