View Full Version : PHP/PEAR mail error

03-01-2008, 06:43 AM
We are experencing some problems with the use of PHP's mail() function. Our support staff told us that the mail() function has some limitations and told us to look into using PEAR's mail() function as an alternative. We did that but the same issue is happening.

To give you a little background, we use the mail() command to send out a confirmation email when someone fills out a form or submits a reservation for any of our various client sites. The problem is only occuring for our one specific client which just happens to be the site that uses the script the most as they take online reservations for various events and dining purposes.

The error we are receiving is:

Warning: mail() [function.mail]: Could not execute mail delivery program '/usr/sbin/sendmail -oi -t' in /usr/lib/php/Mail/mail.php on line 109

This error does not occur all the time but when it does, no emails are sent which has caused some internal problems with regards to the client's members expecting to receive confirmation and with our client's employees trying to track the reservations. The reservations are stored in a database so we are able to verify that the reservations are being made but for some reason the mail script errors out for some reservations.

I'm hoping someone has a vast knowledge of the mail() function, either with PHP or PEAR, and can help us troubleshoot the issue and learn more about any limitations with it (such as, is there a max number of connections at one time, is there a way to cache/store the email confirmations if the script fails and have it resent when the function becomes stable again).

We are willing to pay whomever for their assistance on this matter so please reply here and we can discuss this further by email or private message.

03-01-2008, 07:34 AM
what program you use to Coding ?