Home / Change Outgoing Email Sender
Duplicate Snippet

Embed Snippet on Your Site

Change Outgoing Email Sender

Change the outgoing sender name and email address. Don't forget to edit the snippet with...
WPCode Team
<10
Code Preview
php
<?php
// Please edit the address and name below before activating this snippet.
// Change the From address.
add_filter( 'wp_mail_from', function ( $original_email_address ) {
	return '[email protected]';
} );
// Change the From name.
add_filter( 'wp_mail_from_name', function ( $original_email_from ) {
	return 'Tim Smith';
} );

Comments

Add a Comment