mail() errors and alternatives

From: Date: Tue, 30 Apr 2002 17:01:02 +0000
Subject: mail() errors and alternatives
Groups: php.general 
Request: Send a blank email to php-general+get-95398@lists.php.net to get a copy of this message
For the second time in less than a week, the commercial Web service provider where I have four domains hosted has managed to break PHP. In particular, I get this message: Warning: mail() is not supported in this PHP build I'm not interested in what causes the PHP mail() function to become unavailable. My problem is that the mail() function -- or, more to the point, the ability to send e-mail -- is "mission critical." No mail; no work. No work; unhappy boss. You get the idea. I'm looking for ideas on how I can defend against mail() failures. One idea I had would be to test if(mail($to, $subj, $body, $headers) { /* report ok send */ } ELSE { /* do alternative send */ } Any ideas of how that alternative send could work? I do have an alternative service provider where I have access to PHP that works. Any ideas on the best way to redirect the $to, $subj, $body, $headers to a PHP script at the other domain and return some notification that the send did not report errors? TIA, John Hughes http://jomari.com __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com

« previous php.general (#95398) next »