[wp-trac] [WordPress Trac] #40810: wp_mail fails to send email on WP auto update when wp-cron is called directly by php
WordPress Trac
noreply at wordpress.org
Wed Dec 26 11:33:21 UTC 2018
#40810: wp_mail fails to send email on WP auto update when wp-cron is called
directly by php
--------------------------------------+-----------------------------
Reporter: pessoft | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.1
Component: Mail | Version: 4.7.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+-----------------------------
Comment (by brambo123):
There are more options than just $_SERVER!['SERVER_NAME'] and
php_uname().\\
The functions get_site_url() and get_home_url() are also very suitable.
In addition, there are more prefixes than www., for example: staging. and
dev.\\
By using getmxrr() it is possible to find out if the domain name is valid
to send mail from.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40810#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list