Link to home
Start Free TrialLog in
Avatar of msknr
msknr

asked on

mail function error

Is there any way to see what exactly the error is when I am calling my mail() function?  It have the mail function in a while loop that goes through a list of emails, the first one works, but a particualar email address is causing it to fail the second time through the loop.  

I think I can figure out the problem, if only I knew how to see what the error is.  Does mail return some sort of error code?  in PHP's docs, I didn't find anything that pointed me in the right direction.

Mike

Avatar of errows
errows

Try:
echo mail($vars);

errows
Avatar of msknr

ASKER

errows,

the mail function only returns a 0 or a 1 depending on if it was a success or failure.  I already know its failing.  I'm looking for a more verbose error.
ASKER CERTIFIED SOLUTION
Avatar of errows
errows

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial