Skip to:
Content
Pages
Categories
Search
Top
Bottom

user email as from email

  • @jameseelin

    Participant

    Can you please help me?, I’ve been trying to make the user’s email to be the “from email” on yahoo but I can’t get the data I needed.

    ——————————————————-
    add_filter(‘wp_mail_from’, ‘new_mail_from’);
    add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’);

    function new_mail_from($old) {
    return ’email@testing.com’;
    }
    function new_mail_from_name($old) {
    return ‘Display Name’;
    }
    ——————————————————

    I want to replace “email@testing.com” with the logged in user’s email. and the “Display Name” with the user’s display name.

    the code that I’ve pasted above works, it’s just that I don’t know how to get the details that I need from buddypress.

    anyway, I’ve placed that code on my site’s functionality plugin and I’m really sorry If this is simple but I’m really new to this. thanks a lot :)))

  • The topic ‘user email as from email’ is closed to new replies.
Skip to toolbar