How to Change the Sender Name of Outgoing Emails in WordPress


Questions & AnswersCategory: General QuestionsHow to Change the Sender Name of Outgoing Emails in WordPress
Osisanya Boluwatife asked 6 months ago

Last Updated on: 25th November 2018, 07:16 am

I guess many have found it very difficult and annoying to find solutions to change the name and mail ID of mails sent from your site to customers;
Where the name of your company shows WordPress and mail id are being revealed as [email protected]

Example.com – meaning your domain-name.extension

Upvote
Upvote Love Haha Wow Sad Angry
1 Answers
Osisanya Boluwatife answered 6 months ago

Firstly i want you to realize  that WordPress by default  uses ‘WordPress’ as it’s  sender name for all outgoing  notification emails.
Here, I will show you how to change the default sender name and email address in outgoing WordPress email.
Firstly; you would need to login to your web sever and please you would need to have a child theme for your website – reasons being; you would not want to lose custom changes to your work when an update arrives for that theme.
Secondly; You will need to add the following code into the child theme’s functions.php

Below is an inline of the code;

// Function to change email address
function wpb_sender_email( $original_email_address ) {
return ‘[email protected]’;
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return ‘Boundmix’;
}
// Hooking up our functions to WordPress filters
add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ );
Lastly, Please do take note:
(Boundmix) – should be replaced with the name of your business
([email protected]) – should be replaced with the email address ID you wish to use
And there you have it, All done

Upvote
Upvote Love Haha Wow Sad Angry
Upvote
Upvote Love Haha Wow Sad Angry

Like it? Share with your friends!

Translate »
Copied!
Choose A Format
Personality quiz
Series of questions that intends to reveal something about the personality
Trivia quiz
Series of questions with right and wrong answers that intends to check knowledge
Poll
Voting to make decisions or determine opinions
Story
Formatted Text with Embeds and Visuals
List
The Classic Internet Listicles
Countdown
The Classic Internet Countdowns
Open List
Submit your own item and vote up for the best submission
Ranked List
Upvote or downvote to decide the best list item
Meme
Upload your own images to make custom memes
Video
Youtube, Vimeo or Vine Embeds
Audio
Soundcloud or Mixcloud Embeds
Image
Photo or GIF
Gif
GIF format