Errors like this are caused by missing or incorrect syntax, prior to where the error occurred. You should post all the code or at lease all the code up to the mail(...) statement.
If your code contains sensitive information (passwords...) xxxxxx them out.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|