|
Posted by Geoff Berrow on 01/11/06 22:54
Message-ID: <fD%wf.1315$Hd4.723@newsread1.news.pas.earthlink.net> from
Dave Kelly contained the following:
>Geoff Berrow wrote:
>> I'm doing a bit of work for a guy and on his system the mail() function
>> always returns false, but the mail is sent.
>>
>> Anyone come across this? Any ideas what is causing it and how to fix
>> it?
>Sounds like there is a not missing. Got some code to show?
Don't think so. My test script is very basic.
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// Send
if(mail('bl@*****.co.uk', 'My Subject', $message, 'From:
<bl@*****.co.uk>')){
echo "mail sent";
}
else{
echo "mail not sent";
}
?>
Mail is sent but the screen says mail not sent. Tested on another
server and it works just fine.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|