WordPress.org

Ready to get started?Download WordPress

Forums

wp_mail AddBcc filter (4 posts)

  1. gepapadi
    Member
    Posted 2 years ago #

    Is there a way to add a filter in my functions.php in order to add BCC every time the wp_mail is called?

    Thank you

  2. gepapadi
    Member
    Posted 2 years ago #

    Anyone?

  3. Ryan Hellyer
    Member
    Posted 2 years ago #

    I need to do the same. Based on a quick glance through the wp_mail() function (http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/pluggable.php) it seems that it might be possible to do via the headers section. I haven't quite gotten my head around how to do it yet, but I think it might be possible via the headers argument.

  4. gepapadi
    Member
    Posted 2 years ago #

    I thought so too.
    Still haven't figured out the way, though. Even if i hard code it in pluggable.php or in the plugin that calls it, i believe it is removed in some point before submitted.

Topic Closed

This topic has been closed to new replies.

About this Topic