send_confirmation_on_profile_email

The timeline below displays how wordpress function send_confirmation_on_profile_email has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Sends a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error:</strong> The email address is not correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error:</strong> The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * - ###USERNAME###  The current user's username.
         * - ###ADMIN_URL### The link to click on to confirm the email change.
         * - ###EMAIL###     The new email.
         * - ###SITENAME###  The name of the site.
         * - ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(self_admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site title. */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 6.1

/**
 * Sends a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error:</strong> The email address is not correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error:</strong> The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * - ###USERNAME###  The current user's username.
         * - ###ADMIN_URL### The link to click on to confirm the email change.
         * - ###EMAIL###     The new email.
         * - ###SITENAME###  The name of the site.
         * - ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site title. */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 5.5

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error</strong>: The email address isn&#8217;t correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error</strong>: The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * - ###USERNAME###  The current user's username.
         * - ###ADMIN_URL### The link to click on to confirm the email change.
         * - ###EMAIL###     The new email.
         * - ###SITENAME###  The name of the site.
         * - ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site title. */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 5.4

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error</strong>: The email address isn&#8217;t correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>Error</strong>: The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site title. */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 5.3

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address isn&#8217;t correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site title. */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 5.2

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address isn&#8217;t correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        /* translators: New email address notification email subject. %s: Site name */
        wp_mail($_POST['email'], sprintf(__('[%s] Email Change Request'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 5.1

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 */
function send_confirmation_on_profile_email()
{
    global $errors;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address isn&#8217;t correct.'), array('form-field' => 'email'));
            return;
        }
        if (email_exists($_POST['email'])) {
            $errors->add('user_email', __('<strong>ERROR</strong>: The email address is already used.'), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 9.8

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 9.7

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        if (is_multisite()) {
            $sitename = get_site_option('site_name');
        } else {
            $sitename = get_option('blogname');
        }
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', wp_specialchars_decode($sitename, ENT_QUOTES), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'), ENT_QUOTES)), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 9.3

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        if (is_multisite()) {
            $sitename = get_site_option('site_name');
        } else {
            $sitename = get_option('blogname');
        }
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', wp_specialchars_decode($sitename, ENT_QUOTES), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'), ENT_QUOTES)), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: .20

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 9.2

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        if (is_multisite()) {
            $sitename = get_site_option('site_name');
        } else {
            $sitename = get_option('blogname');
        }
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', wp_specialchars_decode($sitename, ENT_QUOTES), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'), ENT_QUOTES)), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: .10

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . wp_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $sitename = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', $sitename, $content);
        $content = str_replace('###SITEURL###', home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), $sitename), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.9

/**
 * Send a confirmation request email when a change of user email address is attempted.
 *
 * @since 3.0.0
 * @since 4.9.0 This function was moved from wp-admin/includes/ms.php so it's no longer Multisite specific.
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        if (is_multisite()) {
            $sitename = get_site_option('site_name');
        } else {
            $sitename = get_option('blogname');
        }
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the text of the email sent when a change of user email address is attempted.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU (3.0.0)
         * @since 4.9.0 This filter is no longer Multisite specific.
         *
         * @param string $email_text     Text in the email.
         * @param array  $new_user_email {
         *     Data relating to the new user email address.
         *
         *     @type string $hash     The secure hash used in the confirmation link URL.
         *     @type string $newemail The proposed new email address.
         * }
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', wp_specialchars_decode($sitename, ENT_QUOTES), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'), ENT_QUOTES)), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.8

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $switched_locale = switch_to_locale(get_user_locale());
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(self_admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', wp_specialchars_decode(get_site_option('site_name'), ENT_QUOTES), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'), ENT_QUOTES)), $content);
        $_POST['email'] = $current_user->user_email;
        if ($switched_locale) {
            restore_previous_locale();
        }
    }
}

WordPress Version: 4.7

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        $switched_locale = switch_to_locale(get_user_locale());
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(self_admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
        if ($switched_locale) {
            restore_previous_locale();
        }
    }
}

WordPress Version: 4.6

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filters the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.5

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_user_meta($current_user->ID, '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_user_meta($current_user->ID, '_new_email', $new_user_email);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.4

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global WP_Error $errors WP_Error object.
 * @global wpdb     $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.3

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global object $errors WP_Error object.
 * @global object $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.2

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global object $errors WP_Error object.
 * @global object $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        $email_text = __('Howdy ###USERNAME###,

You recently requested to have the email address on your account changed.

If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###USERNAME###  The current user's username.
         * ###ADMIN_URL### The link to click on to confirm the email change.
         * ###EMAIL###     The new email.
         * ###SITENAME###  The name of the site.
         * ###SITEURL###   The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###USERNAME###', $current_user->user_login, $content);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 4.1

/**
 * Sends an email when an email address change is requested.
 *
 * @since 3.0.0
 *
 * @global object $errors WP_Error object.
 * @global object $wpdb   WordPress database object.
 */
function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        $email_text = __('Dear user,

You recently requested to have the email address on your account changed.
If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
         * ###EMAIL### The new email.
         * ###SITENAME### The name of the site.
         * ###SITEURL### The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 3.9

function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        $email_text = __('Dear user,

You recently requested to have the email address on your account changed.
If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
         * ###EMAIL### The new email.
         * ###SITENAME### The name of the site.
         * ###SITEURL### The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), wp_specialchars_decode(get_option('blogname'))), $content);
        $_POST['email'] = $current_user->user_email;
    }
}

WordPress Version: 3.7

function send_confirmation_on_profile_email()
{
    global $errors, $wpdb;
    $current_user = wp_get_current_user();
    if (!is_object($errors)) {
        $errors = new WP_Error();
    }
    if ($current_user->ID != $_POST['user_id']) {
        return false;
    }
    if ($current_user->user_email != $_POST['email']) {
        if (!is_email($_POST['email'])) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address isn&#8217;t correct."), array('form-field' => 'email'));
            return;
        }
        if ($wpdb->get_var($wpdb->prepare("SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email']))) {
            $errors->add('user_email', __("<strong>ERROR</strong>: The email address is already used."), array('form-field' => 'email'));
            delete_option($current_user->ID . '_new_email');
            return;
        }
        $hash = md5($_POST['email'] . time() . mt_rand());
        $new_user_email = array('hash' => $hash, 'newemail' => $_POST['email']);
        update_option($current_user->ID . '_new_email', $new_user_email);
        $email_text = __('Dear user,

You recently requested to have the email address on your account changed.
If this is correct, please click on the following link to change it:
###ADMIN_URL###

You can safely ignore and delete this email if you do not want to
take this action.

This email has been sent to ###EMAIL###

Regards,
All at ###SITENAME###
###SITEURL###');
        /**
         * Filter the email text sent when a user changes emails.
         *
         * The following strings have a special meaning and will get replaced dynamically:
         * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
         * ###EMAIL### The new email.
         * ###SITENAME### The name of the site.
         * ###SITEURL### The URL to the site.
         *
         * @since MU
         *
         * @param string $email_text     Text in the email.
         * @param string $new_user_email New user email that the current user has changed to.
         */
        $content = apply_filters('new_user_email_content', $email_text, $new_user_email);
        $content = str_replace('###ADMIN_URL###', esc_url(admin_url('profile.php?newuseremail=' . $hash)), $content);
        $content = str_replace('###EMAIL###', $_POST['email'], $content);
        $content = str_replace('###SITENAME###', get_site_option('site_name'), $content);
        $content = str_replace('###SITEURL###', network_home_url(), $content);
        wp_mail($_POST['email'], sprintf(__('[%s] New Email Address'), get_option('blogname')), $content);
        $_POST['email'] = $current_user->user_email;
    }
}