[wp-trac] [WordPress Trac] #39753: wp_mail() under PHP 7 hosted on Windows creates malformed email messages
WordPress Trac
noreply at wordpress.org
Wed Feb 22 03:50:01 UTC 2017
#39753: wp_mail() under PHP 7 hosted on Windows creates malformed email messages
-------------------------------+-----------------------------
Reporter: Andy Schmidt | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.7.3
Component: Mail | Version: 4.7.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+-----------------------------
Comment (by Andy Schmidt):
Yes, I have worked my way upstream (securing fixes for PHP 7.0/7.1 and in
PHPmailer 6), so that each step will use appropriate behavior. Being
consistent throughout will avoid this problem flipping back and forth
every so often.
So, let me just point to the PHP manual for mail():
http://php.net/manual/en/function.mail.php
PHP states clearly that both data as well as header ought to be terminated
with \r\n.
It seems that at some point, WordPress should commit to follow the
prescribed behavior as much as possible while being mindful about backward
incompatibility with legacy Linux systems.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39753#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list