You are here: Re: mail() returns false but mail is sent « PHP Programming Language « IT news, forums, messages
Re: mail() returns false but mail is sent

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/

 

Navigation:

[Reply to this 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

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