dragonpimpsta
New Member
- Messages
- 31
- Reaction score
- 0
- Points
- 0
I think this problem is happening with the mail server here somehow. I have a registration script for a tournament thats happening next Saturday. Lots of people register online and it emails me their information so we can plan for them coming. It also emails them saying they are confirmed.
RECENTLY, i tested it and it works as if it was successful but then it doesnt email their information to me. It has worked up until now... maybe the emails are delayed by a few hours??
Does anyone know a way i can check in cpanel for attempted sent messages?
Information:
it sends the emails from this addresss: jreed3s@web5.vital.x10hosting.com
my account is redhawksracquetball.x10hosting.com (It's the script at the beginning of the page)
here's the code:
Last piece of info--- The page at http://redhawksracquetball.x10hosting.com/ sends form data to that script i posted above.
I'd really appreciate any help.
RECENTLY, i tested it and it works as if it was successful but then it doesnt email their information to me. It has worked up until now... maybe the emails are delayed by a few hours??
Does anyone know a way i can check in cpanel for attempted sent messages?
Information:
it sends the emails from this addresss: jreed3s@web5.vital.x10hosting.com
my account is redhawksracquetball.x10hosting.com (It's the script at the beginning of the page)
here's the code:
PHP:
<?php
// Website Contact Form Generator
// http://www.tele-pro.co.uk/scripts/contact_form/
// This script is free to use as long as you
// retain the credit link
// get posted data into local variables
$EmailFrom = Trim(stripslashes($_POST['EmailFrom']));
$EmailTo = "fakeemail@gmail.com";
$FirstName = Trim(stripslashes($_POST['FirstName']));
$LastName = Trim(stripslashes($_POST['LastName']));
$Subject = "Rball_Registration";
$Tel = Trim(stripslashes($_POST['Tel']));
$Division = Trim(stripslashes($_POST['division']));
$Adv = Trim(stripslashes($_POST['adv']));
// validation
$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (Trim($FirstName)=="") $validationOK=false;
if (Trim($LastName)=="") $validationOK=false;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "FirstName: ";
$Body .= $FirstName;
$Body .= "\n";
$Body .= "LastName: ";
$Body .= $LastName;
$Body .= "\n";
$Body .= "Tel: ";
$Body .= $Tel;
$Body .= "\n";
$Body .= "Division: ";
$Body .= $Division;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $EmailFrom;
$Body .= "\n";
$Body .= "Advertising: ";
$Body .= $Adv;
// send email
$success = mail($EmailTo, $Subject, $Body);
$Confirmation = "";
$Confirmation .= "Thanks for Registering!!";
$Confirmation .= "\n";
$Confirmation .= $FirstName . ", You have successfully registered for the Redhawks Racquetball Tournament on -November 20th-.";
$Confirmation .= "\n";
$Confirmation .= "You can check the registered list on the website to make sure you are included sometime tomorrow.";
$Confirmation .= "\n";
$Confirmation .= "Please remember matches begin at -10:00am-.";
// redirect to success page
if ($success){
mail($EmailFrom, "Redhawks Racquetball Tournament", $Confirmation);
print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www6.semo.edu/rball/thankyou.htm\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=http://www6.semo.edu/rball/error.htm\">";
}
?>
Last piece of info--- The page at http://redhawksracquetball.x10hosting.com/ sends form data to that script i posted above.
I'd really appreciate any help.
Last edited: