PHP Error

Posted on 16th Feb 2014 by admin

On my .php page I have a drop down box that has several names in it. When a user clicks the name & fills the rest of the form out, an email is sent to a supervisor. It works great EXCEPT, if I choose the first choice in the drop down box & submit it I get an error.

Here is the line of code the error references:

if (mail($email, "message1", $message, "message2")) {


The error is below:

Notice: Undefined variable: email on line 74
Warning: mail() [function.mail]: SMTP server response: 503 Issue RCPT TO: command before DATA command on line 74

Any ideas

Other forums