How to change the WordPress Default mail sender name

If you want to change the default sender name , By default, WordPress uses ‘WordPress’ as the sender name for all outgoing WordPress notification emails. In this knowledgebase, we will show you how to change the default sender name in outgoing WordPress email.

Step 1

Open the file in this path wp-content/themes/theme-folder/function.php using some editor like DreamWeaver and scroll to end of the file.

Step 2

Now you will need to add the following code in your theme’s functions.php file.

Code :

add_filter( 'wp_mail_from_name', 'my_mail_from_name' ); function my_mail_from_name( $name ) { return "Your NAME"; }

You need to replace the text “Your Name” to your own custom name as per your need.

Like this if you want to change the sender default mail ID , then paste the below code .

function wpb_sender_email( $original_email_address ) {
    return '[email protected]';
}
add_filter( 'wp_mail_from', 'wpb_sender_email' );

You can change the mail ID “[email protected]” as per your need.

Rate This Article

(54 out of 113 people found this article helpful)

Leave A Comment?


The reCAPTCHA verification period has expired. Please reload the page.

This site uses Akismet to reduce spam. Learn how your comment data is processed.