This recipe is pretty easy to implement: Just paste the following code into your functions.php theme:
function res_fromemail($email) {
$wpfrom = get_option('admin_email');
return $wpfrom;
}
function res_fromname($email){
$wpfrom = get_option('blogname');
return $wpfrom;
}
add_filter('wp_mail_from', 'res_fromemail');
add_filter('wp_mail_from_name', 'res_fromname');
Thanks to KeenTricks for the cool tip!
Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!
Change WordPress “from” email header