SMTPError
public enum SMTPError : Error, CustomStringConvertible
Error type for SwiftSMTP.
-
Error decoding string.
Declaration
Swift
case base64DecodeFail(string: String)
-
Hashing server challenge with MD5 algorithm failed.
Declaration
Swift
case md5HashChallengeFail
-
File not found at path while trying to send file
Attachment
.Declaration
Swift
case fileNotFound(path: String)
-
The preferred
AuthMethod
s could not be found, or your server is sending back a STARTTLS command and requires a connection upgrade.Declaration
Swift
case noAuthMethodsOrRequiresTLS(hostname: String)
-
Mail has no recipients.
Declaration
Swift
case noRecipients
-
Failed to create RegularExpression that can check if an email is valid.
Declaration
Swift
case createEmailRegexFailed
-
Bad response received for command.
Declaration
Swift
case badResponse(command: String, response: String)
-
Error converting Data read from socket to a String.
Declaration
Swift
case convertDataUTF8Fail(data: Data)
-
Invalid email provided for
User
.Declaration
Swift
case invalidEmail(email: String)
-
STARTTLS was required but the server did not request it.
Declaration
Swift
case requiredSTARTTLS
-
Description of the
SMTPError
.Declaration
Swift
public var description: String { get }