[wp-trac] [WordPress Trac] #49687: wp_mail() - Why is no envelope sender defined?
WordPress Trac
noreply at wordpress.org
Tue Oct 21 08:35:33 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 jamieburchell):
Replying to [comment:37 dmsnell]:
> After this change there is a chance of mail failure for sites with SPF
configured but which does not allow mail to be sent on behalf of this
domain and if those sites also do not have a properly configured DKIM and
DMARC setup. Those sites should review their SPF policies or the
`wp_mail_from` filter.
If I don't set an envelope sender, it becomes the user the webserver is
running as (apache) and the machine name (which is never the actual domain
name) (e.g. xyz_web_prd_lon_01). I'm struggling to think of a scenario
where not specifying the envelope sender would result in the desired
behaviour.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49687#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list