Opened 10 years ago
Closed 10 years ago
#27811 closed defect (bug) (duplicate)
SERVER_NAME is not defined when running wp-cron from real cron/shell
Reported by: | szepe.viktor | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.2 |
Component: | Keywords: | ||
Focuses: | Cc: |
Description
Automatic updater sends an email but SERVER_NAME is not defined when wp-cron starts as a real Linux cron job.
Please uset get_option('site_url') to determine the hostname.
Change History (3)
Note: See
TracTickets for help on using
tickets.
This is caused by wp_mail() using a fallback address when a $from email is not specified.
I ran into this recently with another CLI WP script, but never looked into it.