Home › Forums › WordPress Plugins › Error with multiple admin mail
I set in my WP multiple admin mail. Now the mail address notification not stra with “Invalid Address (setFrom)”.
How could I solve my issue?
Sorry for the delay. I didn’t see your message stuck in Pending status. You can try to use the following filter in your functions.php:
function lorenzo_fix_multi_admin_email( $headers, $recipients, $subject, $body )
foreach ( $headers as $i => $header )
if ( preg_match( "/^From:.*?<.*?,.*?>/", $header ) )
$headers[$i] = preg_replace("/<(.*?),[^>]+>/", "<$1>", $header );
add_filter('bbpnns_extra_headers', 'lorenzo_fix_multi_admin_email', 10, 4);
Enter something special:
© UseStrict Consulting - All rights reserved