Validation
public struct Validation
Represents SMTP validation methods.
-
Certificate used when connecting to SMTP server through a secure layer.
Declaration
Swift
public let certificate: Certificates -
Cipher used when connecting to SMTP.
Declaration
Swift
public let cipher: Config.Cipher -
Protocols supported when connecting to SMTP.
Declaration
Swift
public let protocols: [Config.TLSProtocol] -
Initilize a validation instance.
Declaration
Swift
public init(certificate: Certificates, cipher: Config.Cipher, protocols: [Config.TLSProtocol])Parameters
certificateCertificate used when connecting to SMTP server through a secure layer.
cipherCipher used when connecting to SMTP.
protocolsProtocols supported when connecting to SMTP.
-
Default
Validationinstance, with default certificate, compat cipher and all protocols supporting.Declaration
Swift
public static let `default` = Validation(certificate: .defaults,
View on GitHub
Install in Dash
Validation Struct Reference