How to Add BCC to Email Notifications

Interested in including BCC recipients in your email notifications? While adding CC recipients to your notifications is already possible by following the steps outlined in this article, we’ll guide you through the simple process of adding BCC recipients as well. Let’s dive in!

Creating the form

Let’s begin by creating a form and adding your fields. For the purpose of this tutorial, we’re going to have just a simple contact form.

create your form and add your fields

There’s no need to adjust your Notifications tab as we’ll be adding the BCC through a snippet.

If you need any assistance in creating your form, please check out this tutorial.

Adding BCC

Now we’re going to add the snippet needed to BCC our accounts department with every form submission for the form ID 892.

For any assistance in how to add snippets to your site, please check out this tutorial.

For a specific form

/**
 * Add BCC recipients to specific form email notifications.
 *
 * @link https://wpforms.com/docs/how-to-add-bcc-to-email-notifications/
 */

add_filter( 'wp_mail', function ( $args ) use ( $form_id ) {

    // Only run this snippet on form ID 892
    if ( $form_id === 892 ) {

        // Add the BCC email address here
        $bcc_address = 'Bcc: [email protected]';

        if ( ! empty( $args[ 'headers' ] ) ) {

            if ( ! is_array( $args[ 'headers' ] ) ) {

                $args[ 'headers' ] = array_filter( explode( "\n", str_replace( "\r\n", "\n", $args[ 'headers' ] ) ) );
            }

        } else {

            $args[ 'headers' ] = [];

        }

        $args[ 'headers' ][] = $bcc_address;

    }

    return $args;
});

For all forms

/**
 * Add BCC recipients to specific form email notifications.
 *
 * @link https://wpforms.com/docs/how-to-add-bcc-to-email-notifications/
 */

add_filter( 'wp_mail', function ( $args ) {

    // Add the BCC email address here
    $bcc_address = 'Bcc: [email protected]';

    if ( ! empty( $args[ 'headers' ] ) ) {

        if ( ! is_array( $args[ 'headers' ] ) ) {

            $args[ 'headers' ] = array_filter( explode( "\n", str_replace( "\r\n", "\n", $args[ 'headers' ] ) ) );
        }

    } else {

        $args[ 'headers' ] = [];
    }

    $args[ 'headers' ][] = $bcc_address;

    return $args;
});

Once the snippet is implemented, any notification email triggered by form submissions—regardless of the form’s specificity—will include a blind carbon copy (BCC) to the designated email address of your choice.

That’s all it takes to incorporate BCC into your email notifications. Interested in transforming the captured phone numbers in your form into clickable links? Check out our article on How to Make Phone Numbers a Link in Email Notifications for step-by-step guidance.

Reference Filter

wp_mail