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

WordPress Trac noreply at wordpress.org
Tue Sep 20 23:21:50 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 Ipstenu):

 FYI, since we changed how phpMailer validates emails, this has caused a
 previously silent error in wp-cli to bomb out.

 https://github.com/wp-cli/wp-cli/issues/3374

 the tl;dr version is that because the email is being passed as
 `wordpress@` without a domain (since php CLI can't grab that variable),
 and phpmailer now flags that as an error, no one can reset passwords on
 command line unless they use the `--url` parameter to force the domain in.

 The change in 4.6 (and 4.6.1) highlights a problem that had been flying
 under the radar for a long time, I think.

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


More information about the wp-trac mailing list