Re: [PHP] Catching error from mail function?

2005-04-02 Thread Burhan Khalid
Ben Cheng wrote: Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is there an error message that I can grab that will show me why the function is returning false? Any help greatly appreciated. Thanks! The

Re: [PHP] Catching error from mail function?

2005-04-01 Thread Zareef Ahmed
Hi, First of all set error reporting to E_ALL, you may get the error string. zareef ahmed On Apr 1, 2005 8:30 AM, Ben Cheng [EMAIL PROTECTED] wrote: Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is

[PHP] Catching error from mail function?

2005-03-31 Thread Ben Cheng
Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is there an error message that I can grab that will show me why the function is returning false? Any help greatly appreciated. Thanks! -Ben -- PHP General