Opened 6 years ago
Closed 6 years ago
#43878 closed enhancement (duplicate)
Allow wp_mail to set Sender field when setting From
Reported by: | bastho | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.1 |
Component: | Keywords: | has-patch | |
Focuses: | Cc: |
Description
[38287] forces PHPMailer's setFrom()
to don't set Sender field.
It seems to improve compatibility on some server environments, but it's a regression on those which support -f
option. On these ones, the Sender
is something like www-data@host
which can cause SPF failure if the server name doesn't match the domain name (which occurs pretty often).
While this setting is very dependent of the server environment, I suggest to add a constant WP_MAIL_AUTO_SENDER
to determine the expected behavior.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi @bastho, thanks for the ticket and the patch!
We're already tracking this issue in #25239.