[wp-trac] [WordPress Trac] #38028: Send emails via an action

WordPress Trac noreply at wordpress.org
Wed Sep 14 18:52:22 UTC 2016


#38028: Send emails via an action
--------------------------+------------------------------
 Reporter:  markcallen    |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------
Changes (by markcallen):

 * keywords:   => dev-feedback


Comment:

 The attached patch covers one of the wp_mail calls in core - it serves to
 demonstrate
 * Back-compat is covered, it does the same thing when left alone.
 * The default action can be adjusted using the pre-existing filters
 * The action could be removed, preventing the `wp_mail` call and remove
 the need for any of the numerous hacks out there to stop mails being sent
 by WordPress.
 * The action can be replaced - giving a developer complete freedom to use
 `wp_mail` (primarily or as a fallback), or any number of third-party email
 services (e.g. SMTP or API), or even just to a log file for development
 purposes.

 I will patch the rest of the calls to wp_mail if this is something that
 can be committed.

 I'd love to hear any other ideas that give both, full back-compat and
 total freedom to developers to send emails how they want.

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


More information about the wp-trac mailing list