Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress overwrite header with wp_mail()

  • @nirzol

    Participant

    Hello
    when I use wp_mail :
    $headers = ‘From : My Name ‘ . “rn”;
    wp_mail(‘test@test.com’, ‘subject’, ‘message’, $headers);
    }
    add_action( ‘wp_footer’, ‘testmail’ );

    my header is not working. I receive the mail the from section : noreply@mysite.com.

    I think the problem comes with buddypress filters :
    add_filter( ‘wp_mail_from’, ‘bp_core_email_from_address_filter’ );

    how can I fix it or clean or reset it ?

    because in all my site when wp_mail is used the from is the same.
    I use it with my contact form.

    Thx for help

  • The topic ‘Buddypress overwrite header with wp_mail()’ is closed to new replies.
Skip to toolbar