TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-10-2008, 07:57 PM   #1 (permalink)
The Wanderer
 
Join Date: Nov 2007
Posts: 9
Thanks: 1
solistus is on a distinguished road
Arrow mail() always returns false

We're having quite an odd issue. We have separate development (internal) and production (public) servers for our University website. After a recent hardware upgrade, we noticed that the production server is having an odd problem: PHP's mail() function returns false even if the message is sent. On development, mail returns values as expected based on whether or not the message was sent. On production, it always claims the message wasn't sent. This is problematic, as all of our email services are reporting to users that they failed every single time, leading to frustration, phone calls and a LOT of resends.

Both servers' relevant PHP configurations are identical (the only differences are things like server name, etc. and some additional security settings on development. All of the settings relating to sendmail are the same.

I've found a few inconclusive reports online. Some indicate that PHP's SIGCHILD handler is the culprit, but both servers are using it and development has no problems.

So far, the only difference we've noticed is that it appears production has a newer version of sendmail. Could this be causing the problem? If so, are there any known solutions (other than downgrading sendmail)?

I doubt newer software would introduce breaks like this, so if that's not it, where else should we be looking? I've combed through every line of phpinfo() to look for configuration differences, to no avail.


edit: btw, we are using PHP 4.4.0.

Last edited by solistus : 04-10-2008 at 09:08 PM.
solistus is offline  
Reply With Quote
Old 04-23-2008, 07:44 AM   #2 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

And when you upgrade sendmail on your development server?
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:36 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design