Menu Close

Change the Email Submission From Name in WordPress to Sender’s Name

Why You Should Change the Sender Name and Email in WordPress

By default, the WordPress email sender name that users see when they receive email notifications from you is ‘WordPress’. As a result, many SPAM filters flag these addresses as SPAM, which results in many of them being blocked. If your WordPress email address gets marked as spam too often, your server may receive a bad reputation, which may lead to some email providers blocking your emails completely.

By changing the sender name, you will prevent email notifications from being labeled as SPAM, ensuring that they reach their destination every time. In addition, if you use your own name in your emails, you may increase awareness of your brand among subscribers.

Let’s take a look at how to change the default sender name in WordPress by using code.

In this snippet, we will change the default email submission ‘From’ field name of ‘WordPress’ to the Sender’s name. Simply copy and paste the following code into the child Functions.php file and save:

add_filter( 'wp_mail_from_name', 'sender_name' );
function sender_name( $original_email_from ) {
return 'Your Name';

Once saved, submit a test email to see what it looks like. Let us know if it worked for you!