Want to know what WordPress Theme a site is using? Check Out Now!

How to Change Sender Name & Email in WordPress Emails?

Do you want to change the sender name and sender email in WordPress emails?

By default, WordPress uses a non-existent email address ([email protected]) to send all WordPress emails to your WordPress website users.

Benefits of Changing Sender Name and Sender Email in WordPress Emails

  1. Reduce the risk of your email address being flagged as spam,
  2. Fixes email deliverability issues,
  3. Allows you to choose an actual email address to send your WordPress emails,
  4. Better reflect your brand or identity,
  5. Enhance professionalism, brand recognition, and user engagement.

How to Change Sender Email Address in WordPress Emails?

Change the sender name in your WordPress emails effortlessly with the below code snippet.

/**
 * Change Sender Email Address in WordPress Emails
 *
 * @param string $original_email_address
 * @return string 
 */
function maverick_change_sender_email_address_wp_emails($original_email_address)
{
    // Store new email adress
    $original_email_address = '[email protected]';

    // Return new email address
    return $original_email_address;
}

add_filter('wp_mail_from', 'maverick_change_sender_email_address_wp_emails');

How to Change Sender Name in WordPress Emails?

Customize the sender name in your WordPress emails effortlessly with the below simple code tweak.

// Change Sender Name in WordPress Emails
function maverick_change_sender_name_wp_emails($original_email_from)
{
    // Store new email adress
    $original_email_from = 'John Doe';

    // Return new email address
    return $original_email_from;
}

add_filter('wp_mail_from_name', 'maverick_change_sender_name_wp_emails');

Leave a Reply

Your email address will not be published. Required fields are marked *