Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[WordPress] Code from our blog post - Changing the Default Outgoing WordPress Email Address -
function lc_new_mail_from( $email ) {
$email = '';
return $email;
add_filter( 'wp_mail_from', 'lc_new_mail_from' );
function lc_new_mail_from_name( $name ) {
$name = 'My Business Website';
return $name;
add_filter( 'wp_mail_from_name', 'lc_new_mail_from_name' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.