You are here: Re: php mail() function does nothing « PHP Programming Language « IT news, forums, messages
Re: php mail() function does nothing

Posted by Mike Willbanks on 09/20/05 04:26

tencip:

>
> We have in our php.ini a direct path all the way to sendmail
> configured. I'm at a loss as to why PHP mail() isn't even spitting
> back an error. The maillog shows nothing from PHP.
>
> Are there any variables, extensions that need to be compiled, etc to
> make mail() work?

Did you set sendmail_from? That may be it as well. Also perform a
trace of sendmail when PHP goes to send an email.

Also note from the manual:
" For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. ... Also, the user that compiled
PHP must have permission to access the sendmail binary."

Try recompiling and making sure that the user you compiled under has
access to sendmail.


--
Mike Willbanks
Zend Certified Engineer
http://www.digitalstruct.com

 

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

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