SCook Posted March 18, 2009 Share Posted March 18, 2009 Hi everyone, I am using the mail() function on a client's server, php is enabled, but it keeps telling me that the mail is failing. Of course, it's just my message. Does the mail() function throw any exceptions? Like mysql_error()? Something like that? Thanks. Link to comment https://forums.phpfreaks.com/topic/150016-does-mail-throw-any-error-messages/ Share on other sites More sharing options...
WolfRage Posted March 18, 2009 Share Posted March 18, 2009 Should be entries in your error log or mail errorlog files. Link to comment https://forums.phpfreaks.com/topic/150016-does-mail-throw-any-error-messages/#findComment-787838 Share on other sites More sharing options...
PFMaBiSmAd Posted March 18, 2009 Share Posted March 18, 2009 There should be entries in the error log file if error_reporting is set to E_ALL and php error logging is enabled. You can also turn on the track_errors bit (globally or in your script) and get any mail generated errors into your script using $php_errormsg - http://us3.php.net/manual/en/errorfunc.configuration.php#ini.track-errors http://us3.php.net/manual/en/reserved.variables.phperrormsg.php Edit: if you just want to see them for debugging set display_errors to ON, in addition to setting error_reporting to E_ALL Link to comment https://forums.phpfreaks.com/topic/150016-does-mail-throw-any-error-messages/#findComment-787855 Share on other sites More sharing options...
WolfRage Posted March 18, 2009 Share Posted March 18, 2009 Thanks, for got to address that part. Link to comment https://forums.phpfreaks.com/topic/150016-does-mail-throw-any-error-messages/#findComment-787871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.