diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0c69afbaac..84511f33a1 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -291,7 +291,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() $from_email = str_replace( '>', '', $from_email ); $from_email = trim( $from_email ); } else { - $from_name = trim( $content ); + $from_email = trim( $content ); } } elseif ( 'content-type' == strtolower($name) ) { if ( strpos( $content,';' ) !== false ) {