Skip to content

Instantly share code, notes, and snippets.

@mjangda
Created May 12, 2010 04:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mjangda/398203 to your computer and use it in GitHub Desktop.
How to change the "From" name and email address for outgoing WordPress emails
<?php
add_filter( 'wp_mail_from', 'mycustom_wp_mail_from' );
function mycustom_wp_mail_from( $from_email ) {
return 'abc@xyz.com';
}
add_filter( 'wp_mail_from_name', 'mycustom_wp_mail_from_name' );
function mycustom_wp_mail_from_name( $from_name ) {
return 'John Doe';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment