[wp-meta] [Making WordPress.org] #2895: Sponsor invoice notification emails come from wrong address

Making WordPress.org noreply at wordpress.org
Thu Jun 22 14:54:19 UTC 2017

#2895: Sponsor invoice notification emails come from wrong address
 Reporter:  iandunn               |      Owner:
     Type:  defect                |     Status:  new
 Priority:  low                   |  Milestone:
Component:  WordCamp Site &       |   Keywords:  needs-patch good-first-bug
  Plugins                         |
 The email notifications that get sent when a sponor invoice is updated
 sometimes come from the wrong email address. For example, a notification
 about an invoice for 2017.seattle.wordcamp.org might be sent from
 2017.brisbane.wordcamp.org (or any other site in the network).

 ​I think that's happening because, by default, `wp_mail()` sets the
 `Message.From` based on the current site, and that notification is
 triggered by a cron job, so the current site is just whichever site
 happened to be visited at the moment the job was scheduled.

 Assuming that's the problem, we should be able to fix it by explicitly
 setting the `From` header to `EMAIL_CENTRAL_SUPPORT` in `wp-

Ticket URL: <https://meta.trac.wordpress.org/ticket/2895>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list