|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30227 mail("","test","test") dont work..
Submitted: 2004-09-25 01:33 UTC Modified: 2004-09-25 04:36 UTC
From: anonymus at webmaster-hub dot com Assigned:
Status: Not a bug Package: Mail related
PHP Version: 4.3.7 OS: Linux 2.4.26-grsec
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: anonymus at webmaster-hub dot com
New email:
PHP Version: OS:


 [2004-09-25 01:33 UTC] anonymus at webmaster-hub dot com
Sorry, i don't understand english... :(

H?te : (
Syst?me d'exploitation : Linux 2.4.26-grsec 	     
Serveur HTTP : 	Apache/1.3.31 (Unix) mod_gzip/ PHP/4.3.7 mod_ssl/2.8.18 OpenSSL/0.9.6m
Version PHP : 	4.3.7 (Zend : 1.3.0)

function mail() return true, but dont send mail when there is - - in the $to parameter.

I'm using the Open Source "Os Commerce".

The mail function is ok with the same 'open source', but with this parameters :

Server Host: (
Server OS: Linux 2.4.27-mutu-piv
HTTP Server: Apache
PHP Version: 4.3.8 (Zend: 1.3.0)

Reproduce code:
if (mail("", "test2","test2"))echo"OK 1der";
if (mail("", "test2","test2"))echo"<br>OK 2der";


Output :
OK 1
OK 2

In Outlook :
OK 1 only.

Expected result:
The first mail("anonymus@web.... 
return TRUE,
The second mail("g-n-d@rayon....
return TRUE.


I receive the first, not the second. 
Whith the second server (Server ( i receive the first and the second mail.

That's all ;)

Thanks to say me if it's a real bug or not. +> Nicolas GALLE. (french).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-25 04:36 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

mail() will return true if everything was successful, i.e. the mail was successfully delivered to the MTA.

What happens after that, mail() does not know. It is possible your mail was rejected by a spam filter, the email address is not valid, or a host of other reasons.

If you can send mail to the 2nd address fine (with php), but it stops working when you try to send two mails from the same script - may imply a bug in PHP, or simply a configuration issue with your mail server.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 02 20:03:58 2022 UTC