http://roddyinnovations.com/?action=contact
On that page, it should send an email after the user fills out and validates that form. I've checked my script, and it says that it sent the email. Yet, I never receive it. Anybody got an idea? Here's the source coding for the send email part:
Code:
if(isset($_POST['cemail'])){
$cHeader = "From: " . $_POST['cemail'];
switch($_POST['formtype']){
case 'affapply':
$cMessage = "Name: " .$_POST['cname'] . "\nSite Name: " . $_POST['csitename'] . "\nSite URL: " . $_POST['csiteurl'] . "\nAvg. Unique Hits: " . $_POST['csitehits'] . "\nDescription...\n\n" . $_POST['cmessage'] . "\n\nEmail-Address: " . $_POST['cemail'];
break;
default:
$cMessage = "Name: " . $_POST['cname'] . "\n\nMessage:\n" . $_POST['cmessage'] . "\n\nEmail-Address: " . $_POST['cemail'];
}
if(mail("scorpian8867@gmail.com", $_POST['csubject'], $cMessage, $cHeader)){
echo "Message sent successfully.";
}else{
echo "Message delivery failed.";
}
}
Any ideas?