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

WordPress Trac noreply at wordpress.org
Mon Jul 28 12:11:05 UTC 2025


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

Comment (by markcallen):

 That's fine, I'd given up on anything ever happening with this anyway.

 I maintain that all notifications/emails should be triggered by an action
 - with subsequent calls to `wp_mail()`, so they can be controlled by
 developers - either through replacement emails, or setting up other
 channels (WhatsApp, SMS, RCS... whatever), along with leaving `wp_mail()`
 intact for fallback (and backward compatibility where existing plugins
 have replaced it).

 I think it's a very simple implementation and would not take huge effort,
 but understand there may be broader considerations I'm not aware of.

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


More information about the wp-trac mailing list