[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
WordPress Trac
noreply at wordpress.org
Mon Sep 19 10:17:03 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 BjornW):
In my case I've fixed this with this [https://wordpress.org/plugins/admin-
email-as-from-address/ small plugin]. It uses the admin user's email
address as a From address thus enforcing a working email address. For now,
this is a workable solution for me at least until @jesin's patch or
someone else's is accepted in WordPress. Hope this helps.
Replying to [comment:37 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:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list