[wp-trac] [WordPress Trac] #33698: SERVER_NAME may not be set in wp_mail()

WordPress Trac noreply at wordpress.org
Thu Sep 3 00:32:52 UTC 2015


#33698: SERVER_NAME may not be set in wp_mail()
--------------------------+-----------------------------
 Reporter:  szepe.viktor  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Mail          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `$sitename = strtolower( $_SERVER['SERVER_NAME'] );` results in an empty
 string thus an invalid sender address: `wordpress@`

 Please fall back to `$_SERVER['HTTP_HOST']`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33698>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list