Hi Team,
I need to change the emails received from my WordPress Store from default value [email protected] to [email protected]
I have set the email address in woo-commerce so when users try to reset the account password they do receive the email from correct mentioned email address as per woo-commerce setting but after successful password change , me as an admin of the website receive an email from my site as the user password is changed
This email is received from default wordpress email – [email protected] and usually is marked as SPAM or does not reach me as suspected spam
I know my request is not that related to your theme and i can make use of third part plugins but i doubt that they may affect the other functionality so need to avoid it
I have found a related article which does it by putting the code in function.php
https://wordpress.stackexchange.com/questions/173818/how-can-i-change-the-email-sender-name-from-wordpress-to-myblogname-on-the-lo
To change the name
add_filter( 'wp_mail_from_name', 'custom_wpse_mail_from_name' );
function custom_wpse_mail_from_name( $original_email_from ) {
return 'Yours Truly';
}
To change the email
add_filter( 'wp_mail_from', 'custom_wpse_mail_from' );
function custom_wpse_mail_from( $original_email_address ) {
return '[email protected]';
}
I need your support to confirm this code or share your suggestion as this will really be helpful for me and many others on your forum
Regards,
Pritam