---
title: "setBccRecipients(_:)"
framework: Message UI
role: symbol
role_heading: Instance Method
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: "messageui/mfmailcomposeviewcontroller/setbccrecipients(_:)"
---

# setBccRecipients(_:)

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

## Declaration

```swift
func setBccRecipients(_ bccRecipients: [String]?)
```

## Parameters

- `bccRecipients`: An array of doc://com.apple.documentation/documentation/Swift/String objects, each containing the email address of a single recipient.

## Discussion

Discussion This method replaces the previous blind carbon-copy (Bcc) recipients with the new ones listed in the bccRecipients parameter. This method doesn’t filter out duplicate email addresses, so if duplicates are present, the recipient may receive multiple copies of the email message. Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user. important: MFMailComposeViewController ignores calls to this method in Mac apps built with Mac Catalyst.

## See Also

### Setting mail fields programmatically

- [setSubject(_:)](messageui/mfmailcomposeviewcontroller/setsubject(_:).md)
- [setToRecipients(_:)](messageui/mfmailcomposeviewcontroller/settorecipients(_:).md)
- [setCcRecipients(_:)](messageui/mfmailcomposeviewcontroller/setccrecipients(_:).md)
- [setMessageBody(_:isHTML:)](messageui/mfmailcomposeviewcontroller/setmessagebody(_:ishtml:).md)
- [addAttachmentData(_:mimeType:fileName:)](messageui/mfmailcomposeviewcontroller/addattachmentdata(_:mimetype:filename:).md)
- [setPreferredSendingEmailAddress(_:)](messageui/mfmailcomposeviewcontroller/setpreferredsendingemailaddress(_:).md)
