Title: [FIX REQUEST] $bcc missing -&gt; $bcc = array();
Last modified: August 30, 2016

---

# [FIX REQUEST] $bcc missing -> $bcc = array();

 *  [soodl](https://wordpress.org/support/users/soodl/)
 * (@soodl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fix-request-bcc-missing-bcc-array/)
 * Hey,
 * had problems sending emails with a bcc header. Not multiple bcc headers, only
   one. The bcc header is added via a filter. Viewing the debug log I got: `PHP 
   Notice: Undefined variable: bcc in /xxxxxxxxxx/wp-content/plugins/wpmandrill/
   wpmandrill.php on line 1752.`
 * Kinda makes sense. First instance of $bcc is:
    `$bcc = array_merge( (array) $
   bcc, explode( ',', $content ) );`
 * Adding `$bcc = array();` to line 1720 just over the foreach fixes the issue. 
   Not an elegant solution but it works. Your source code says // TODO: Mandrill’s
   API only accept one BCC address. Other addresses will be silently discarded so
   I guess your planing to work on these bits anyways 😉
 * thanks in advance,
    soodl
 * [https://wordpress.org/plugins/wpmandrill/](https://wordpress.org/plugins/wpmandrill/)

The topic ‘[FIX REQUEST] $bcc missing -> $bcc = array();’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmandrill_171717.svg)
 * [wpMandrill](https://wordpress.org/plugins/wpmandrill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmandrill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmandrill/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmandrill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmandrill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmandrill/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [soodl](https://wordpress.org/support/users/soodl/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/fix-request-bcc-missing-bcc-array/)
 * Status: not resolved