Re: Error Handling!

From: Date: Wed, 13 Mar 2002 02:47:19 +0000
Subject: Re: Error Handling!
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-88284@lists.php.net to get a copy of this message
In article <20020312143200.64346.qmail@web14107.mail.yahoo.com>, thomasedisonjr@yahoo.com says... > I want errors reported on a page when the mail() > function for any reason fails to send emails. FOr > example, if there is a malformed email address or > anything, and the mail is not sent, how can i catch > the Error and Display it on the page? > > Thanks, > T. Edison Jr. I don't think that is really posible. The mail() function doesn't actually send the mail; all it does is hands it off to the defined MTA which looks after the sending etc. There have been numerous discussions on the list about how to check a mail address - have a look over those and see if there is something suitable for checking the address before processing it with mail(). Also, I recall there is a header item something like Errors to: in which you can define an address which will receieve error messages from the MTA; you'll need to check the RFCs for the correct definition. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#88284) next »