https://chatgpt.com/share/69fb8fbd-1d4c-83ea-afa2-99a9d21fd31a

 

You would add code to your child theme’s functions.php file or, preferably, a small site-specific plugin.

 

/**
 * Customize the WordPress password changed confirmation email.
 */
add_filter('password_change_email', function($email, $user, $userdata) {

    $site_name = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
    $site_url  = home_url();

    $email['subject'] = '[' . $site_name . '] Password Changed';

    $email['message'] = sprintf(
        "Hi %s,\n\n" .
        "This notice confirms that the password for your account on %s was changed.\n\n" .
        "If you made this change, no further action is needed.\n\n" .
        "If you did not change your password, please contact us at support@yourdomain.com immediately.\n\n" .
        "Site: %s\n\n" .
        "Regards,\n" .
        "%s",
        $user['user_login'],
        $site_name,
        $site_url,
        $site_name
    );

    return $email;

}, 10, 3);

 

 

Replace:

support@yourdomain.com

with the email address you actually want to show.

One note: the sender line showing:

WordPress <wordpress@forever-free.net>

is controlled separately from the message body. To change that, use SMTP settings or add:

add_filter('wp_mail_from', function($email) {
    return 'support@forever-free.net';
});

add_filter('wp_mail_from_name', function($name) {
    return 'Forever Free';
});