[wp-trac] [WordPress Trac] #56115: Prevent default from email to use a subdomain when the siteurl is a subdomain
WordPress Trac
noreply at wordpress.org
Sat Jul 12 18:14:49 UTC 2025
#56115: Prevent default from email to use a subdomain when the siteurl is a
subdomain
---------------------------+------------------------------
Reporter: benoitchantre | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 2.1
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
---------------------------+------------------------------
Changes (by SirLouen):
* status: new => closed
* resolution: => wontfix
Comment:
> In this case, the email will be tagged as spam because the from header
domain doesn't the top-level domain.
This is not correct. Subdomains carry the same reputation as the parent
domain.
The fact that the email is ending in the spam box is completely unrelated
to the use of a subdomain. The important thing here is how your MTA is
configured, not which subdomain is being used in WP. Probably you have
configured your MTA with your domain and this is why your emails are not
fully compliant spam-wise
([https://www.cs.columbia.edu/~hgs/research/projects/spam-from/ being the
`From` is different to the `Received` hostname])
Using the subdomain for the email, when the site is using a subdomain, is
just a matter of consistency and what a user should expect by default.
Be aware, that many users could be using a subdomain without access to the
domain for several reasons beyond their control. The fact that you just
happen to have access to both domain and subdomain is simply your specific
use case but does not generalize well.
If you personally find that the subdomain is not doing any good for the
reasons stated above, you can always edit it manually. For example, you
can directly hook to `wp_mail_from` filter and return the email you want
to use for those `From`.
Closing this as `wontfix`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56115#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list