Change WordPress Email Sender Without a Plugin | Firhma.com

Change WordPress Email Sender Without a Plugin

Change WordPress Email Sender Without a Plugin

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.

Change WordPress Email Sender Without a Plugin

Change the WordPress email sender without a plugin from your WordPress dashboard

  1. Log in to your dashboard
  2. Appearance > Editor
  3. Select theme to edit
  4. Find and select functions.php
  5. Add the code below
  6. Update file

Change the WordPress email sender without a plugin with the file manager

  1. Open the file manager
  2. Open your WordPress file directory
  3. Go to wp-content > themes > your current template
  4. Find and open functions.php
  5. Add the code
  6. Save the file

Need help with Your Site

Copy the code here to change WordPress email sender without a plugin. 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

CRA phone scam

Bitcoin email extorsion

How to remove your personal information from Google


Useful linksBlog | Tutorials | Scam alerts | Report a scam

Don`t copy text!