Opened 8 years ago
Closed 8 years ago
#43878 closed enhancement (duplicate)
Allow wp_mail to set Sender field when setting From
| Reported by: | bastho | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | 5.1 | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @bastho, thanks for the ticket and the patch!
We're already tracking this issue in #25239.