|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-14 10:34 UTC] sniper@php.net
[2003-10-14 10:44 UTC] thouraud at bondy dot ird dot fr
[2003-10-14 11:13 UTC] sniper@php.net
[2003-10-14 13:05 UTC] thouraud at bondy dot ird dot fr
[2003-10-14 17:53 UTC] iliaa@php.net
[2004-05-06 04:07 UTC] roguedragon at merging dot org
[2011-07-03 08:03 UTC] zhirkow at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Description: ------------ The mail() function always return FALSE. Even if the mail is sent ! Test with the sun's sendmail and postfix 2.0.16. The mail can go out with no problem. The result get the same safe_mode or not. apache 1.3.28 with php as a module Reproduce code: --------------- <?php $ret = mail ("user@domain.tld", "sujet " . date("l dS of F Y h:i:s A"), "corps\nl2\nl3\n", "From: user@domain.tld\r\n" ."Reply-To: user@domain.tld\r\n" ) ; print "ret = $ret<hr>" ; if ($ret) { print 'OK<br>' ; } else { print 'KO<br>' ; } ?> Expected result: ---------------- if we can send mail to user@domain.tld then OK and user@domain.tld receive the mail. if any error to sent mail then KO and no mail ! Actual result: -------------- always KO but the mail are been received !