[wp-trac] [WordPress Trac] #43878: Allow wp_mail to set Sender field when setting From

WordPress Trac noreply at wordpress.org
Fri Apr 27 12:56:34 UTC 2018


#43878: Allow wp_mail to set Sender field when setting From
-------------------------+-----------------------------
 Reporter:  bastho       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Mail         |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 [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 at 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43878>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list