Opened 7 years ago
Closed 7 years ago
#42011 closed defect (bug) (duplicate)
wp_mail(): $from_email generation produce error with nginx default vhost '_'
Reported by: | benprowp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.8.2 |
Component: | Keywords: | ||
Focuses: | Cc: |
Description
Hello,
I have an nginx default vhost with the server_name setted at _
.
server_name _;
This cause the generation of from_email to: wordpress@_
.
And I saw no errors catched/displayed by WordPress. I needed to debug manually
wp-includes/pluggable.php
.
You should display why the mail cannot be send, at least in debug mode!
And maybe you should not use $sitename = strtolower( $_SERVER['SERVER_NAME'] );
, but the address of the WordPress siteurl
.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi @benprowp, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #25239.