WordPress – change the default ‘from’ information

The default email address and from name in WordPress notification emails can be easily changed by editing your functions.php file

Simply add the following code (remembering to change the email address and name to the ones you want to use instead)

 add_filter('wp_mail_from', 'new_mail_from');
 add_filter('wp_mail_from_name', 'new_mail_from_name');

function new_mail_from($old) {
 return 'yourname@yourdomain.com';
 function new_mail_from_name($old) {
 return 'Your Name';

We’re based in Sheffield, UK. If you’d like help updating your WordPress site or any other WordPress maintenance, give us a call on 0114 383 0711