Opened 9 years ago
Closed 9 years ago
#42011 closed defect (bug) (duplicate)
wp_mail(): $from_email generation produce error with nginx default vhost '_'
| Reported by: | benprowp | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 4.8.2 | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @benprowp, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #25239.