Emails received from your WordPress websites are from WordPress and the email is wordpress@yoursite.com. If you don’t want WordPress to appear in your email communications, this is how to change the WordPress email sender without a plugin.
Copy the code here to change WordPress email sender. Add the email address and sender name you prefer. For example, your sender name as your site name and your email address as admin@yoursite.com.
function wpb_sender_email( $original_email_address ) { return 'add email address'; } // Function to change sender name function wpb_sender_name( $original_email_from ) { return 'add sender name'; } // Hooking up our functions to WordPress filters add_filter( 'wp_mail_from', 'wpb_sender_email' ); add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
Now your site will display your email and site name in all communications, including new user registration, password reset and order confirmation.
Need help? We can help you with this code.
Read these articles
How to remove your personal information from Google
Useful links | Blog | Tutorials | Scam alerts | Report a scam