Invalid email address"; echo "Back"; } elseif ($subject == "") { echo "

No subject

"; echo "Back"; } /* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */ elseif (mail($email,$subject,$message)) { echo "

Thank you for sending email

"; } else { echo "

Can't send email to $email

"; } ?>