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
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
echo mail($vars);
errows