Reset Password - change from name and email address. It stucks at admin. Want to change it to info

At the admin dashboard of my wordpress under wordpress settings > general my admin email is set as [email protected]

Here is my issue. When a customer wants to reset her or his password automated mail is sending from [email protected] instead of the admin email I setup at the settings > general

Basically I want to change from email address from [email protected] to [email protected] for automated reset password emails

Thanks

Topic reset password Wordpress

Category Web


As you can see here, WordPress will use WordPress as sender name and wordpress@<SITENAME> as sender email, if these params were note passed to wp_mail.

You can use wp_mail_from and wp_mail_from_name filters to modify these values though.

So if you want to change the sender e-mail address, just use this code:

add_filter( 'wp_mail_from', function( $email ) {
    return '[email protected]';
});

PS. But [email protected] is not a default email address that should be used, so maybe one of your plugins/theme is already changing that.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.