Instance Method

setBccRecipients(_:)

Sets the initial recipients to include in the email’s “Bcc” field.

Declaration

func setBccRecipients(_ bccRecipients: [String]?)

Parameters

bccRecipients

An array of NSString objects, each of which contains the email address of a single recipient.

Discussion

This method replaces the previous blind carbon-copy (bcc) recipients with the new ones listed in the bccRecipients parameter. This method does not filter out duplicate email addresses, so if duplicates are present, multiple copies of the email message may be sent to the same address.

Only call this method before you display the mail composition interface. Do not call it after presenting the interface to the user.

See Also

Setting Mail Fields Programmatically

func setSubject(String)

Sets the initial text for the subject line of the email.

func setToRecipients([String]?)

Sets the initial recipients to include in the email’s “To” field.

func setCcRecipients([String]?)

Sets the initial recipients to include in the email’s “Cc” field.

func setMessageBody(String, isHTML: Bool)

Sets the initial body text to include in the email.

func addAttachmentData(Data, mimeType: String, fileName: String)

Adds the specified data as an attachment to the message.

func setPreferredSendingEmailAddress(String)

Sets the preferred email address to use in the From field, if such an address is available.