Written by James McDonald

August 24, 2021

The Divi contact form allows you to send to multiple email addresses by opening the properties of the form and entering multiple comma separated email addresses but they end up all in the To: field

Adding BCC to Emails using a functions.php Snippet

Check the above site for the code but here it is


add_filter('wp_mail', 'custom_mails', 10, 1);

function custom_mails($args)
    $bccEmail = sanitize_email('[email protected]');

    if (is_array($args['headers'])) {
        $args['headers'][] = 'Bcc: ' . $bccEmail;
    } else {
        $args['headers'] .= 'Bcc: ' . $bccEmail . "\r\n";

    return $args;


Submit a Comment

Your email address will not be published.

You May Also Like…

MacOS USB Creator

Just toasted my Windows 10 Pro install with a Windows 11 upgrade. Think it will be unrecoverable (because of Bitlocker...