Still having trouble – >
using a different code but I keep getting Access Denied when I upload so I can’t even test the form
<?php
/*Subject and email variables */
$emailSubject = 'Thats Fishing Contact Form';
$webMaster = 'fish@thatsfishing.com.au';
/*Gathering data variables*/
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$commentField = $_POST['comment'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Comment: $comment <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/*Results as HTML*/
$theResults = <<<EOD
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
Good
</body>
</html>
EOD;
echo "$theResults";
?>