How to Change Email Sender In WooCommerce

WooCommerce Change Email Sender

Are you looking for a way to change the default sender name and email address for outgoing emails in WooCommerce?

It is important to add the correct sender name and email address to all notifications you send out to your customers. You should always look professional.

This is because WordPress sends several email notifications to the site administrator and users on your site.

These notifications include website error and recovery emails, new user registration, and more.

You should use your own brand and email address to increase the authenticity of your brand and increases name recognition among your users.

WooCommerce Change Email Sender

In this brief tutorial, we will show you how you can change the email sender settings. WooCommerce has a built-in solution to configure email settings.

Let us look at how you can achieve this.

Steps to Change the Email Sender Options in WooCommerce

Here are the steps you need to follow:

  1. Log into your WordPress site and access the Dashboard as the admin user.
  2. From the Dashboard menu, click on WooCommerce > Settings.
  3. After that, click the Emails tab:emails
  4. Scroll down to the Email sender options section and add the business name and official email:sender options
  5. Click on Save Changes.

Alternatively, you can use a custom PHP code snippet to achieve the same result.

However, we do not recommend this method for beginners. This is because if you make any mistake, an error will be displayed on your site.

To change the email sender, click on Appearance Menu > Theme Editor Menu. When the Theme Editor page is opened, add the following code to the functions.php file:

 

// Function to change the email address

function njengah_sender_email( $original_email_address ) {

    return 'email@example.com';

}

// Function to change the sender name

function njengah_sender_name( $original_email_from ) {

    return 'Woo Dev';

}

 // Hooking up our functions to WordPress filters

add_filter( 'wp_mail_from', 'njengah_sender_email' );

add_filter( 'wp_mail_from_name', 'njengah_sender_name' );


This code will replace the default WordPress sender name and email address with your custom sender name and email address.

Conclusion

In this brief tutorial, we have shared how you can change the sender’s name and address. You can also edit the email template on the email settings page.

However, if you need added functionality, you can use a plugin like WP Mail SMTP.

If you encounter any problems implementing the code, please contact an experienced WooCommerce Developer.

Similar Articles

  1. WooCommerce Redirect After Checkout: Redirect to Custom Thank You Page
  2. How to Add Search to Shop Page In WooCommerce