Reply to Re: mail() returns false but mail is sent

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация