Opened 12 years ago
Closed 12 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 3.8.2 | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.