I recently copy and pasted some code from a help site to get my contact form up and running. I followed all of the instructions and put in my information. Email, return message formatting ect.
The email actually goes through but I don’t receive any of the info except for the message part. Any help would be appreciated as I am completely new to PHP.
My html code is below followed by my php.
<?php $emailSubject = 'HappinessDesigns!'; $webMaster = '[email protected]'; $Name = $_POST['Name']; $Email = $_POST['Email']; $Subject = $_POST['comments']; $Message = $_POST['Message']; $body = <<<EOD Name: $name Email: $email Subject: $Subject Message: $Message EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); $theResults = <<<EOD sent message