1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. Change the Email Address to a Business Name

Change the Email Address to a Business Name

Introduction

BuddyBoss does not provide a built-in option to change the sender email address used in WordPress emails. By default, emails are sent from a generic WordPress address. However, you can customize this behavior by adding a small function to your active theme, allowing emails to appear as if they are sent from your business email address instead.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, open Theme Functions (functions.php).
  4. Add the following code just before the closing PHP tag (?>):
function wpb_sender_email( $original_email_address ) {

    return '[email protected]';

}

add_filter( 'wp_mail_from', 'wpb_sender_email' );

Note: Replace [email protected] with your preferred business email address.

  1. Click Update File to save the changes.

Once applied, all outgoing WordPress emails will use the specified email address as the sender.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: The sender email didn’t change. Why?
A: Ensure the code is added to the active theme’s functions.php file and clear any site or email caching.

Q: Will this affect all outgoing emails?
A: Yes. This change applies to all WordPress-generated emails.

Q: How can I revert this change?
A: Simply remove the code from functions.php and save the file.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.