php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30227 mail("m-a-n@do-ma-ine.com","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
 [2004-09-25 01:33 UTC] anonymus at webmaster-hub dot com
Description:
------------
Sorry, i don't understand english... :(

H?te :  ns30992.ovh.net (213.186.57.191)
Syst?me d'exploitation : Linux 2.4.26-grsec 	     
Serveur HTTP : 	Apache/1.3.31 (Unix) mod_gzip/1.3.19.1a 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: web30.60gp.ha.ovh.net (10.0.15.130)
Server OS: Linux 2.4.27-mutu-piv
HTTP Server: Apache
PHP Version: 4.3.8 (Zend: 1.3.0)


Reproduce code:
---------------
<?
if (mail("anonymus@webmaster-hub.com", "test2","test2"))echo"OK 1der";
if (mail("g-n-d@rayon-bien-etre.com", "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.

But

I receive the first, not the second. 
Whith the second server (Server Host:web30.60gp.ha.ovh.net (10.0.15.130)) i receive the first and the second mail.

That's all ;)

Thanks to say me if it's a real bug or not.
anonymus@webmaster-hub.com +> Nicolas GALLE. (french).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-25 04:36 UTC] aidan@php.net
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 http://www.php.net/support.php 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: Tue Sep 27 22:03:42 2022 UTC