Select Page

Do you want to change the default FROM Email Address WordPress sends emails from? You can change the default email address and name that WordPress uses to send emails from.

Here’s a simple script you can use to change the default FROM Email Address in WordPress:

function change_default_from_email($name) {
	return '[email protected]'; // All emails by default will now be sent from this FROM Email.
}
// Add a filter function for the wp_mail_from filter.
add_filter('wp_mail_from', 'change_default_from_email');

Place this code in your theme’s functions.php file or in a custom plugin for your site.

The above code will change the default FROM email address to [email protected]

If you want to change the default FROM Name as well, copy and paste the following code snippet into your theme’s functions.php file:

function change_default_from_name($name) {
	return 'John Doe'; // All emails by default will now be sent from this FROM Name.
}
// Add a filter function for the wp_mail_from_name filter.
add_filter('wp_mail_from_name','change_default_from_name');