|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25357 Mail() function is loosing cahracters when sending mail
Submitted: 2003-09-02 06:32 UTC Modified: 2003-09-02 09:37 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: pjsmith at microtech dot co dot gg Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 4.3.3 OS: Windows 2003, IIS, ISAPI
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pjsmith at microtech dot co dot gg
New email:
PHP Version: OS:


 [2003-09-02 06:32 UTC] pjsmith at microtech dot co dot gg
If you try to mail a string such as 

Version: GnuPG v1.0.6 (MingW32)
Comment: For info see


With a pgp signature, it seems to be missing 1 character of the first line of the signature, breaking it.  This worked flawslessly with 4.3.2.  When we upgraded yesterday, this started happening.  I've spent several hours on this and it would appear that the mail() function is at fault.

Reproduce code:
Mail a pgp signed sig such as in the desciption and check the sig before and after sending.  My messages are about 1,220 bytes in length on average with the sig at the bottom

The code I'm usnig is
				$apptext=fread($domapp,filesize("uk_apps\\$appname". "_modify.asc"));
						mail("$recipient", "MODIFY", "$apptext",
							"From: <>\r\nMessage-Id: <" . time() . ">\r\nReply-To: <>\r\nX-Mailer: PHP/" . phpversion());	

Expected result:
It to send the mail with the string as supplied.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-02 08:19 UTC] pjsmith at microtech dot co dot gg
Just to confirm I have re-installed php 4.3.2 and the problem has gone away...
 [2003-09-02 09:37 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

See bug #25333

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 03:01:31 2024 UTC