Add the following code to your theme’s functions.php file if the plugin provides a filter for modifying email headers:
function custom_user_registration_email_to_field( $email ) {
$user_id = $email->get_user_id();
$user = get_userdata( $user_id );
if ( ! empty( $user->first_name ) ) {
$email->set_to( $user->first_name . ' <' . $user->user_email . '>' );
}
return $email;
}
add_filter( 'user_registration_email', 'custom_user_registration_email_to_field' );
Related Posts:
- Mass registrations on my blog. Disable specific domain?
- What is the best plugin or way to create Email Verification right now?
- How can I be certain that a user has verified their email after registration?
- Give to site admin the option to “skip confirmation email” when adding new user
- How to set up User email verification after Signup?
- wp_insert_user – how to send verification email before logging in
- use query var argument as verification link?
- WordPress is executing URL in code when called via wp_mail()
- Validate a users email address when using gmail to register
- I’m receiving requests to change the admin email. How can this be happening?
- Disable the administration email address verification (new in 5.3)
- Email confirmation in user registration form without a plugin
- How to use same email for multiple users in Multisite version 4.7
- WordPress Add New User – Send an Activation Email
- SQL Query to Update Admin Email
- Only allowing some email addresses to create an account
- What’s wrong with Customizing new user notification email by add_filter?
- WP-API user email change confirmation
- how to change the verification url of pie register plugin of wordpress?
- user_register not triggering with email verification
- WooCommerce: “account is already registered with your email address”
- Redirect user after successful email change
- Looking for a way that will collect visitors emails before letting them view the blog posts [closed]
- Correctly configure SPF/DMARC record to work with WordPress [closed]
- How to use a 3rd party library to send emails?
- Unable to change email address of admin on localhost
- Only allowing some emails to create an account [closed]
- Woocommerce check if email already created order recently [closed]
- Sender e-mail address, for new order email to customer, is suddenly wrong [closed]
- How to Send Confirmation Emails to Users after Form Submission?
- not sending correct link to set the password in registration email [closed]
- WordPress site member verification emails going to spam on Outlook
- How to recover one of WP email addresses?
- Send user auto generated password on different email
- Not receiving any sign up mail, when user registers… Both admin & user
- Updated : how to make email optional while user registration using default wordpress form
- How to let new users login without email activation
- Link with password is not sent to the new user
- Custom registration function not working as it should because is_mail and email_exist keep giving errors when it shouldn’t
- New database entry to trigger runing PHP/SQL query through link with token, without logging into the website
- Allow users to register on multisite through WooCommerce using the same email address
- On local machine can’t log in or reset password but I can log in on the live version, user has activation key in database
- User email verification without a plugin, is it possible?
- Require confirmation of current user’s email before updating database and before send_email_change_email
- User account activation links are lacking query strings
- Changing the body of mail sent to new user registration
- Resend user activation mail
- Email verification feature in wordpress social login plugin
- What is the point of new confirm admin email process?
- Welcome Email Going to Spam
- How do you disable the verification process of user email changes?
- Why does WordPress not send the user the email to add a password?
- How to add verification on email address change?
- Email Customization – Can’t get user_activationo_key