[wp-trac] [WordPress Trac] #49687: wp_mail() - Why is no envelope sender defined?

WordPress Trac noreply at wordpress.org
Tue Oct 21 09:22:00 UTC 2025


#49687: wp_mail() - Why is no envelope sender defined?
-------------------------------------+-----------------------
 Reporter:  vbbp                     |       Owner:  SirLouen
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  6.9
Component:  Mail                     |     Version:  5.4
 Severity:  major                    |  Resolution:  fixed
 Keywords:  has-test-info has-patch  |     Focuses:
-------------------------------------+-----------------------

Comment (by dmsnell):

 @jamieburchell after this change, the sender should default to `wordpress
 @my-site.my-tld` where `my-site.my-tld` roughly corresponds to
 `home_url()` without any `www.` prefix.

 so if you happen to have an SPF policy which disallows sending emails on
 behalf of `my-site.my-tld` it will //start// rejecting with this patch,
 because previously it did not come from that rejected domain. the
 circumstances should be extremely rare.

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


More information about the wp-trac mailing list