• 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/

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