Alright I have made all the necessary changes but I still cannot get the form to send me email.
here is the updated code (I changed several things):
<FORM ACTION="../test/email_test.php" METHOD=POST>
$_GET['MailTo'] = "jeffbradley@jeffbradley.ca";
and added a }
<?php
$_GET['MailTo'] = "jeffbradley@jeffbradley.ca";
if ($_GET['BeenSubmitted']) {
if ($_GET['MailTo']) {
if (mail($_GET['MailTo'], $_GET['Subject'], $_GET['Body'], "From: $_GET['MailFrom']")) {
print ("<B><CENTER><FONT COLOR=BLUE>Your email has been successfully sent!</FONT></CENTER></B>\n");
} else {
print ("<B><CENTER><FONT COLOR=RED>Your email was not successfully sent due to a system error!</FONT></CENTER></B>\n");
}
}
}
?>
<html>
<head>
<title>Email Test</title>
<body>
<FORM ACTION="../test/email_test.php" METHOD=POST>
Your Email Address: <INPUT TYPE=TEXT NAME="MailFrom" SIZE="50"><BR>
Email Subject: <INPUT TYPE=TEXT NAME="Subject" SIZE="80"><BR>
Email Body:<TEXTAREA NAME="Body" ROWS="10" COLS="50"></TEXTAREA><P>
<INPUT TYPE=HIDDEN NAME=BeenSubmitted VALUE=TRUE>
<INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="Submit">
</FORM>
</body>
</html>
here is the error I get http://www.jeffbradley.ca/test/email_test.php