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

    certificate

    Certificate used when connecting to SMTP server through a secure layer.

    cipher

    Cipher used when connecting to SMTP.

    protocols

    Protocols supported when connecting to SMTP.

  • Default Validation instance, with default certificate, compat cipher and all protocols supporting.

    Declaration

    Swift

    public static let `default` = Validation(certificate: .defaults,