100 Web Space
http://forum.100webspace.com/

mail() trouble
http://forum.100webspace.com/viewtopic.php?f=5&t=5809
Page 1 of 1

Author:  scorpian8867 [ Sat Jan 20, 2007 8:06 pm ]
Post subject:  mail() trouble

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? :?:

Author:  Andy [ Mon Jan 22, 2007 6:39 am ]
Post subject: 

Please open a trouble ticket regarding this issue. This you can do from the Help Center section of your Control Panel.
Looking forward to hearing from you.

Author:  scorpian8867 [ Mon Jan 22, 2007 8:53 pm ]
Post subject: 

Alright, that's what I was thinking I should do. I actually had this problem before, on my upload site. However, I thought it was only because there wasn't a mail server pointing at that sub-domain or something. I just thought I'd check here to see if I screwed up the script or something. Thanks. :)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/