Bug #73485 [Fbk->Asn]: mail() adds a lone CR or LF

From: Date: Fri, 25 Nov 2016 15:21:45 +0000
Subject: Bug #73485 [Fbk->Asn]: mail() adds a lone CR or LF
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205638@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73485&edit=1

 ID:                 73485
 User updated by:    sherwoodsports at gmail dot com
 Reported by:        sherwoodsports at gmail dot com
 Summary:            mail() adds a lone CR or LF
-Status:             Feedback
+Status:             Assigned
 Type:               Bug
 Package:            Mail related
 Operating System:   All
 PHP Version:        7.0.X
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for re-opening.  

A manipulated MTA/UMA likely would not explain why the older version of PHP works, but the newer
version does not.  

Also, all CRLF's used in the code are using PHP_EOL and are not using manual ('\n\r')
characters to end lines.  No single \r or \n characters are used, therefore are not subject to the
non-conversion issue you suggest.  This also supports the fact that the older PHP versions prior to
7 works without issues, but 7 does have issues.


Previous Comments:
------------------------------------------------------------------------
[2016-11-25 07:05:22] yohgaki@php.net

I reopened this bug for the time being.
It seems this problem is due to MTA/UMA newline conversion which is not a bug of PHP.

Recent MTA/UMA do _not_ convert LF to CR/LF and this could results in errors like you have. It seems
you are experiencing this issue and if this is the case, you should fix your code. i.e. Use CR/LF
for new lines as defined in RFC.

------------------------------------------------------------------------
[2016-11-24 16:13:37] Sherwoodsports at gmail dot com

This is on Windows server 2008.

------------------------------------------------------------------------
[2016-11-24 16:12:05] Sherwoodsports at gmail dot com

I will modify and will send the output as soon as I can but am unable to for a day or two.

------------------------------------------------------------------------
[2016-11-24 15:56:15] sherwoodsports at gmail dot com

Again, your comment is unrelated to the original bug report.  Please re-open this bug.  I am unable
to compare output between 5.3 and 7.0.  This is what needs to be done to determine if this original
report is a bug or not.

------------------------------------------------------------------------
[2016-11-24 08:50:20] yohgaki@php.net

OK. Back to original report.

Could you modify the test script and attach the modified test script (the phpt) so that the problem
can be seen as plain text output?

OS should not be "All". Are you using Windows or UNIX like OS? (Windows and UNIX uses
different code to send mails) Please specify what OS you are using.

------------------------------------------------------------------------


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=73485


--
Edit this bug report at https://bugs.php.net/bug.php?id=73485&edit=1


Thread (21 messages)

« previous php.bugs (#205638) next »