Hello, I have built a website and a form for entry into a band contest. I followed several tutorials to create a php script to send the form to my email but am not receiving the emails. I checked spam filters and also uploaded a test php to ensure that I am capable of receiving emails. This leads me to believe I have some issue with my script. Please help!!!
<?php /* Subject and Email Variables */ $emailSubject = 'RGV Entry'; $webMaster = '[email protected]'; /* Gathering Data Variables */ $schoolField = $_POST['school']; $classificationField = $_POST['classification']; $otherField = $_POST['other']; $addressField = $_POST['address']; $cityField = $_POST['city']; $zipField = $_POST['zip']; $phoneField = $_POST['phone']; $cellField = $_POST['cell']; $emailField = $_POST['email']; $groupField = $_POST['group']; $directorField = $_POST['director']; $piece1Field = $_POST['piece1']; $composer1Field = $_POST['composer1']; $piece2Field = $_POST['piece2']; $composer2Field = $_POST['composer2']; $piece3Field = $_POST['piece3']; $composer3Field = $_POST['composer3']; $body = <<<EODSchool: $school
Classification: $classification
Other: $other
Address: $address
City: $city
Zip Code: $zip
School Phone: $phone
Director Cell Phone: $cell
Email: $email
Competing Group: $group
Groupd Director: $director
First Piece: $piece1
Composer: $composer1
Second Piece: $piece2
Composer: $composer2
Third Piece: $piece3
Composer: $composer3
EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* Results rendered as HTML */ $theResults = <<<EOD Contact Form EOD; echo "$theResults"; ?>