Title: Multi (B)CC support
Last modified: January 26, 2021

---

# Multi (B)CC support

 *  [fperdaan](https://wordpress.org/support/users/piewp/)
 * (@piewp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/multi-bcc-support/)
 * Hello,
 * Today I found out the plugin does not support the usage of a multi (B)CC header.
   
   i.e. the header below will result into a faulty header exception and will be 
   ignored.
 * `Bcc: address1@example.com, address2@example.com`
 * As the plugin is closed off with private functions / attributes and a lack of
   hooks there seems to be no other way to fix this than **forking the plugin**.
   Can you please consider fixing this issue in the core plugin by making the following
   change?
 * _classes/Email.php:335_
 *     ```
       private function header_cc( $content, $type = 'cc' ) {
       	$recipients = $this->maybe_convert_to_array( $content );
   
       	foreach ( $recipients as $recipient ) {
       		$recipient = $this->maybe_split_recipient( $recipient );
   
       		try {
       			switch ( $type ) {
       				case 'cc':
       					$this->mail->addCC( $recipient['email'], $recipient['name'] );
       					break;
       				case 'bcc':
       					$this->mail->addBCC( $recipient['email'], $recipient['name'] );
       					break;
       			}
       		} catch ( \Exception $e ) {
       			continue;
       		}
       	}
       }
       ```
   
 * Eager to hear from you,
 * With kind regards
    -  This topic was modified 5 years, 4 months ago by [fperdaan](https://wordpress.org/support/users/piewp/).

The topic ‘Multi (B)CC support’ is closed to new replies.

 * ![](https://ps.w.org/wp-ses/assets/icon-256x256.jpg?rev=2070048)
 * [WP Offload SES Lite](https://wordpress.org/plugins/wp-ses/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ses/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ses/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ses/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ses/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ses/reviews/)

## Tags

 * [bcc](https://wordpress.org/support/topic-tag/bcc/)
 * [CC](https://wordpress.org/support/topic-tag/cc/)

 * 0 replies
 * 1 participant
 * Last reply from: [fperdaan](https://wordpress.org/support/users/piewp/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/multi-bcc-support/)
 * Status: not resolved