|
Posted by windandwaves on 01/12/06 00:10
Geoff Berrow wrote:
> 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.
is the problem server a windows server? Mail is handled slightly different
on a windows server.
Navigation:
[Reply to this message]
|