Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
Cart / $0.00

No products in the cart.

No Result
View All Result
Scriptfeeds Blog
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us
Cart / $0.00

No products in the cart.

No Result
View All Result
Scriptfeeds Blog
No Result
View All Result
Home Wordpress

Easy Steps to change sender name in WordPress notification emails

Scriptfeeds by Scriptfeeds
May 18, 2022
in Wordpress, Errors
0
84
SHARES
Share on FacebookShare on TwitterWhatsapp this Blog

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

  • Code to add in Child theme
WordPress notification emails

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!

Connect with Developer
Loading
Tags: change business name in wordpress emailsChange wordpress name in emails
Share34Tweet21Send

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Scriptfeeds Blog

© 2022 Scriptfeeds

Blog Categories

  • WordPress
  • Development
  • Reviews
  • Marketing

Connect us on

No Result
View All Result
  • Blog
  • WordPress
    • Woocommerce
    • WordPress Errors
    • WordPress Plugins
  • Development
    • WordPress Themes
  • Hire us

© 2022 Scriptfeeds

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.