Bug #73507 [Com]: Extra space added before additional headers when mail.add_x_header is enabled
| From: | mattcoz at yahoo dot com | Date: | Thu, 24 Nov 2016 17:15:12 +0000 |
| Subject: | Bug #73507 [Com]: Extra space added before additional headers when mail.add_x_header is enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205620@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73507&edit=1
ID: 73507
Comment by: mattcoz at yahoo dot com
Reported by: mattcoz at yahoo dot com
Summary: Extra space added before additional headers when
mail.add_x_header is enabled
Status: Feedback
Type: Bug
Package: *Mail Related
Operating System: Windows
PHP Version: 7.0.13
Block user comment: N
Private report: N
New Comment:
Ok, I tested this with a different SMTP server and the problem goes away. I'm not sure why this
would have been working in PHP5 though.
Previous Comments:
------------------------------------------------------------------------
[2016-11-24 05:50:02] mattcoz at yahoo dot com
What additional detail are you looking for?
------------------------------------------------------------------------
[2016-11-21 18:50:36] ab@php.net
@mattcoz at yahoo dot com, please describe in detail the way you trigger the bug.
Thanks.
------------------------------------------------------------------------
[2016-11-21 16:52:34] mattcoz at yahoo dot com
Ok, so I tried this on another server with a fresh copy of PHP 7.0.13. I created a php.ini file with
the only settings being my smtp server and mail.add_x_header = On. I then tested my script and got
the same problem.
------------------------------------------------------------------------
[2016-11-21 11:24:32] ab@php.net
I don't reproduce this as well, debugged also through the Windows only sendmail part. @mattcoz
at yahoo dot com, there must be something in the configuration, or the data, so we can reproduce
this as well.
Thanks.
------------------------------------------------------------------------
[2016-11-13 15:06:23] cmb@php.net
I can't reproduce the reported behavior (neither on Windows with
php-7.0.13-nts-Win32-VC14-x86, nor on Linux with current PHP-5.6
and PHP-7.0):
php -n -d mail.add_x_header=1 -d sendmail_path="cat -" -r
"mail('to@email.com', 'Subject', 'Message', 'From:
from@email.com');"
To: to@email.com
Subject: Subject
X-PHP-Originating-Script: 1:Command line code
From: from@email.com
Message
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=73507
--
Edit this bug report at https://bugs.php.net/bug.php?id=73507&edit=1