Changing the email from name and new user registration confirmation message
Description
When a new user registers for a WordPress website they receive a confirmation email with their registration details. he default confirmation email address sender is WordPress as well as wordpress email address. to change this to the name of your company change “your company” the the name and email for your company and paste this […]
When a new user registers for a WordPress website they receive a confirmation email with their registration details. he default confirmation email address sender is WordPress as well as wordpress email address. to change this to the name of your company change “your company” the the name and email for your company and paste this php code in the functions.php page
PHP Source Code
add_filter( 'wp_mail_from', 'your_email' );
function your_email( $original_email_address )
{
return 'Support@yourcompany.com';
}
add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );
function custom_wp_mail_from_name( $original_email_from )
{
return 'Your Company Name';
}