Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Change “from” field in outgoing mail and access test server

Discussion in 'Misc WordPress Requests' started by wpbees, Mar 20, 2018.

  1. wpbees

    Guest

    Reply To: Change “from” field in outgoing mail and access test server, by wpbees

    That will require some changes in the functions.php file where you need to specify new FROM name and address:

    Open functions.php file

    Copy and paste the following lines:

    function new_mail_from($old) {
    return ‘[email protected]’;
    }
    function new_mail_from_name($old) {
    return ‘Your Name Here’;
    }
    add_filter(‘wp_mail_from’, ‘new_mail_from’);
    add_filter(‘wp_mail_from_name’, ‘new_mail_from_name’);

    Change details:

    email address at line #2: return ‘[email protected]’;
    name at line #5: return ‘Your Name Here’;

    Or

    Try to get a plugin that would handle this for you.

    Hope this helps.

    Reply To: Change “from” field in outgoing mail and access test server
     
    #1

Share This Page

Monarch Social Sharing Plugin