Hello,
The following php script sends form data to a file, I would like to change it so that it sends the data to an email instead
Thanks
<?php
(empty($Name)) ? exit("<FONT face=verdana,sans-serif size=4>Process error! <FONT face=verdana,sans-serif size=3><b><p>Please remember to enter your name</b></p></FONT>") : '';
(empty($Email)) ? exit("<FONT face=verdana,sans-serif size=4>Process error! <FONT face=verdana,sans-serif size=3><b><p>Please remember to enter your E-mail address</b></p></FONT>") : '';
$fp = fopen("contact.txt", 'a+');
flock($fp,2);
fwrite($fp,"".date('d-m-Y').
"\n".
"\nName: ".$Name.
"\nE-Mail: ".$Email.
"\nComment: ".$Comment.
"\n".
"\n".
"\n");
fclose($fp);
echo "
<html>
<head><title>Your query is being processed!</title>
<meta http-equiv=\"Refresh\" content=\"7; URL=http://\">
</head>
<body text=\"#000000\" leftmargin=\"20\" topmargin=\"20\" marginwidth=\"20\" marginheight=\"20\" link=\"#000000\">
<br><br>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"100%\" align=\"center\">
<tr align=\"center\" valign=\"middle\">
<td>
<table border=\"1\" cellspacing=\"1\" cellpadding=\"6\" bgcolor=\"#000000\" width=\"70%\">
<tr>
<td bgcolor=\"#FFFFFF\" align=\"center\">
<div align=\"center\">
<font face=\"verdana, arial, helvetica\" size=\"2\" ><b>Thank you, we will be in touch as soon as possible</b></font>
</div>
<p align=\"center\"><font face=\"verdana, arial, helvetica\" size=\"2\" ><b>Redirecting
back to the Homepage</b><br>
</font><font face=\"verdana,arial,helvetica\" size=\"2\" ><a href=\"http://\">You
can click here if your browser does not automatically forward you
</a> </font> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>";
?>