add_filter('wp_mail_from', function($email){
if( substr($email,0,10) === 'wordpress@')
$email = get_option('admin_email');
return $email;
});
add_filter('wp_mail_from_name', function($name){
if($name === 'WordPress')
$name = str_replace( '’', "'", get_option('blogname') );
return $name;
});