[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
Sat Jul 29 19:36:11 UTC 2017


#40810: wp_mail fails to send email on WP auto update when wp-cron is called
directly by php
--------------------------------------+------------------------------
 Reporter:  pessoft                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Mail                      |     Version:  4.7.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  administration
--------------------------------------+------------------------------
Changes (by pessoft):

 * keywords:  has-patch => has-patch has-unit-tests


Comment:

 I've added unit test to verify that when wp_cron has been called, that
 also From parameter of PHPMailer instance has been updated from its
 initial state. This update does not occur in cases when SERVER_NAME is not
 available and results in WP error messages and emails not being sent. This
 unit test is depending on #41485 as MockPHPMailer is not correctly reset
 and From parameter cannot be tested for changes from initial state.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40810#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list