how to rectify the following error ? SMTP server response: 503 Bad sequence of commands. You must specify the recipients of a message before you can send it in php
Could we see the code that is generating this error message?
It helps with the debugging process, to be able to see the code ;-)
Also, you might want to consider abandoning the old PHP mail function and try one of the PHP mailer classes, like: PHPMailer or Swift Mailer.
They are generally much easier to deal with.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.