SmtpException

class SmtpException(message: String, val replyCode: Int? = null, val enhancedStatusCode: String? = null, cause: Throwable? = null) : MailException(source)

An SMTP failure. If the server rejected a command, replyCode and enhancedStatusCode are set.

Constructors

Link copied to clipboard
constructor(message: String, replyCode: Int? = null, enhancedStatusCode: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard

The RFC 3463 enhanced status code, e.g. 5.1.1.

Link copied to clipboard

True for 4xx replies: retrying later may succeed.

Link copied to clipboard

The three digit reply code, e.g. 550.