email sends from WordPress

Home Forums Legacy Support Support queries Setup issues email sends from WordPress

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44717
    chrsjensen
    Participant

    When sending out emails the sender is now set to come from Wordpress (please see attached). I have found the code below which should correct the issue but I still have a question: I guess I need to change the '[email protected]' and 'site name' to my own info? Also, is there anything else I need to change to my own info?

    add_filter('wp_mail_from', 'new_mail_fromqw');

    add_filter('wp_mail_from_name', 'new_mail_from_nameqw');

    function new_mail_fromqw($old) {

    return '[email protected]';

    }

    function new_mail_from_nameqw($old) {

    return 'site name';

    }

    #44853
    Anshuman Sahu
    Keymaster

    Yep you can change the the text between the quotes ." [email protected]  " and " site name "  
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘email sends from WordPress’ is closed to new replies.