[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error handling, BRL vs PHP

If this newbie had an analagous problem with mail in BRL, he would have
gotten a meaningful error message by default.  There may be some global
errno you can check if PHP mail() returns false, but I don't know what
it is, and none of the examples I've seen so far check the return value.

------- Start of forwarded message -------
From: Tim Cowan <johannaandtim@rogers.com>
Subject: Re: How do I send mail
Newsgroups: alt.php
References: <VkQS7.70899$KT.17604475@news4.rdc1.on.home.com> <2jln1ucg267gi0n93d2b06glsrtjs9o0bj@4ax.com>
Organization: Bigspot Inc.
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <67TS7.71545$KT.17800582@news4.rdc1.on.home.com>
Date: Sun, 16 Dec 2001 01:52:02 GMT

Matt Durell wrote:

> In message-id <VkQS7.70899$KT.17604475@news4.rdc1.on.home.com>
> on Sat, 15 Dec 2001 22:41:57 GMT
> 'Tim Cowan' issued the following statement:
>>I am running apache server on linux (Mandrake 8.1) and I am trying to send
>>mail using PHP and the mail(...) function.
>>I don't get any PHP errors but no mail gets sent.
>>Does anyone know how to fix this?
> 1. do you have sendmail running?
> 2. check the setting for 'sendmail_path' in php.ini
> hth,
> m.
> _please_ read the sig:

I checked the setting in the php.ini file.  It was set at 
/etc/sbin/sendmail -t.

What should it be set at?  I tried to search for sendmail but could not 
find it.


Tim Cowan
------- End of forwarded message -------