Change WordPress From Address
To change the default email address that WP uses to send notification emails etc. Replace wordpress@domain.
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return 'web@clickforcharity.net';
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return 'ClickForCharity';
}
// Hooking up our functions to WordPress filters
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_name' );
Add to functions.php or use plug-in like CodeSnippets.