BCCSetting

public struct BCCSetting : Encodable

This allows you to have a blind carbon copy automatically sent to the specified email address for every email that is sent.

  • A bool indicating if the setting should be toggled on or off.

    Declaration

    Swift

    public let enable: Bool
  • The email address that you would like to receive the BCC.

    Declaration

    Swift

    public let email: String?
  • Initializes the setting with an email to use as the BCC address. This setting can also be used to turn off the BCC app if it is normally on by default on your SendGrid account. To turn off the setting for this specific email, pass in nil as the email address (nil is the default value as well, so if you want to turn off the setting you can initialize the setting with no parameters, i.e. BCCSetting()).

    Declaration

    Swift

    public init(email: String? = nil)

    Parameters

    email

    A String representing the email address to set as the BCC.

  • Initializes the setting with an email to use as the BCC address.

    Declaration

    Swift

    public init(address: Address)

    Parameters

    email

    An Address instance to set as the BCC.

  • Validates that the BCC email is a valid email address.

    Declaration

    Swift

    public func validate() throws