Skip to main content

By default, the default WordPress email adress looks like WordPress@yoursitename.com. Want to use your real email and username instead? Just read this recipe. 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');