• I am wondering if I can change what email address sends the new user their account information. If I create a new user and send them their password, they get an email from <[email protected]> with the subject “[] Your username and password”. Can I change the email address who sends this email to something like info@…com and change the subject line?

Viewing 1 replies (of 1 total)
  • You can try using the following hook/filters. You’ll want to add the following to your functions.php file, to alter the from header within wp_mail();

    add_filter('wp_mail_from','yoursite_wp_mail_from');
    function yoursite_wp_mail_from($content_type) {
      return '[email protected]';
    }
    
    add_filter('wp_mail_from_name','yoursite_wp_mail_from_name');
    function yoursite_wp_mail_from_name($name) {
      return 'cdHNC';
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Change the email address for when I create a new account for someone’ is closed to new replies.