You are here: Re: mail()===false but msg is sent! « PHP « IT news, forums, messages
Re: mail()===false but msg is sent!

Posted by Manuel Lemos on 07/03/05 03:34

Hello,

on 07/02/2005 07:11 PM Andy Pieters said the following:
> Hi all
>
> I have this situation where mail() returns a false status but the
message is
> actually accepted AND reaches destination!
>
> The PHP Version is 4.3.10, the OS Linux
>
> So what I do is (
>
> $header="header for multipart mime message";
> $body="body with multipart mime message";
> $result=mail("Name Firstname <$address>","Subject",$message,$header);
> echo ($result?"ok":"bogus");
>
>
> So anyone got any ideas?

The mail function practically never fails under Linux because it just
handles the message to sendmail program or equivalent. This may be a
mail() function bug.

In any case, you may want to try this class that comes with a wrapper
function named sendmail_mail(). It works like mail() and takes the same
arguments but it calls sendmail program directly. If it also fails, it
may be a problem in your sendmail installation. Otherwise, it is a
problem in the mail() function.

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

 

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

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