php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15755 Can't send MAIL
Submitted: 2002-02-27 04:43 UTC Modified: 2002-05-24 20:24 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: milamamu at tiscalinet dot it Assigned:
Status: Closed Package: Mail related
PHP Version: 4.1.0 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: milamamu at tiscalinet dot it
New email:
PHP Version: OS:

 

 [2002-02-27 04:43 UTC] milamamu at tiscalinet dot it
The mail() function does not seem to work
I am using PHP 4.1.0 under apache.

This type of script not function:

<?php
mail("pippo@nospreadmymail.com", "PHP Mail test", "Line 1\nLine 2\nLine 3");
?>

but if i change in this

<?php
mail("pippo@nospreadmymail.com", "PHP Mail test", "Line 1\r\nLine 2\r\nLine 3");
?>

No problem append..
In php 4.0.6 no problem!

This problem is tested only on Windows Platform

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-02 17:07 UTC] glen at starrett dot nosolicit dot name
I have seen something similar, but it turned out to be nothing at all PHP releated.  The \n vs. \r\n makes the difference to some mail transports, and they will reject mail with plain LF characters.  That is to say, if you are using \n and NOT \r\n, it will work for SOME destination email addresses but not others and it is entirely dependent on if you have a picky (that is, adhering to standards) or loose (non-standard but common) mail transport in between you and the email address you are sending to.
 [2002-05-24 20:24 UTC] derick@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 08:01:28 2024 UTC