By default, WordPress uses ‘WordPress’ as the sender name for all outgoing WordPress notification emails. This may seems odd and very unprofessional to many online sellers. Also sometimes these emails can be blocked or spam by many email providers.
Changing Sender Name and Email in WordPress notification email can be done via plugin or functions but we prefer function over adding extra plugins for such small features.
Table of Contents
Add the code below in your functions.php file of child theme to change sender name in WordPress notification emails.
// Function to change email address
function sf_sender_email( $original_email_address ) {
return 'info@mydomain.com';
}
// Function to change sender name
function sf_sender_name( $original_email_from ) {
return 'Company name';
}
// Hooking up our functions to WordPress filters
add_filter( 'wp_mail_from', 'sf_sender_email' );
add_filter( 'wp_mail_from_name', 'sf_sender_name' );
So add the code and let us know if its working. If you need any other customization regarding WooCommerce, contact our Support team here
happy Coding!