[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names

WordPress Trac noreply at wordpress.org
Fri Sep 16 10:47:55 UTC 2016


#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
-------------------------------------------------+-------------------------
 Reporter:  layotte                              |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reviewing
Component:  Mail                                 |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch dev-feedback needs-        |     Version:  3.8
  testing                                        |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by neodjandre):

 I am facing the same problem using:

 Nginx + Postfix + Real Cron Jobs

 I am receiving these errors:


 {{{
 Error message
 phpmailerException: Uncaught exception 'phpmailerException' with message
 'Invalid address: wordpress@' in /var/www/html/wp-includes/class-
 phpmailer.php:946

 Stack trace
 in PHPMailer::setFrom called at /var/www/html/wp-includes/pluggable.php
 (352)
 in wp_mail called at /var/www/html/wp-includes/user.php (1841)
 in wp_update_user called at /var/www/html/wp-admin/includes/user.php (182)
 in edit_user called at /var/www/html/wp-admin/user-edit.php (147)
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list