Greentopia Ranch School
20845 Questhaven Road
Escondido, CA 92029

Phone: 760-298-0332
Fax: 760-301-8045
www.GreentopiaRanchSchool.com
Email: info@GreentopiaRanchSchool.com 
 
From = $email1; $mail->FromName = $parentname; $mail->Host = $MailServer; $mail->Mailer = "smtp"; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = $MailUsername; // SMTP username $mail->Password = $MailPassword; // SMTP password $mail->AddAddress($YourEmailAddress, $Yourname); $mail->AddReplyTo($ReplyToEmailAddress, $ReplyToEmailname); $mail->WordWrap = 50; // set word wrap to 50 characters $mail->IsHTML($mailtypetosend); // True for HTML, FALSE for plain text $mail->SetLanguage("en", "language/"); //Start the page action upon submittal if ($action == "contact" ) { if (empty($_POST['parentname'])) { $name = FALSE; $message .= '
Please enter your name
'; } else { $name = $_POST['parentname']; } if (empty($_POST['childname'])) { $name = FALSE; $message .= '
Please enter your child name
'; } else { $name = $_POST['childname']; } if (empty($_POST['childage'])) { $name = FALSE; $message .= '
Please enter your child age
'; } else { $name = $_POST['childage']; } if (empty($_POST['email1'])) { $email = FALSE; $message .= '
Please enter your email address
'; } else { $email = $_POST['email1']; } if (empty($_POST['phone'])) { $phone = FALSE; $message .= '
Please enter a phone number to reach you at
'; } else { $phone = $_POST['phone']; } if (empty($_POST['address'])) { $email = FALSE; $message .= '
Please enter your address
'; } else { $email = $_POST['address']; } if (empty($_POST['citystate'])) { $email = FALSE; $message .= '
Please enter your city and state
'; } else { $email = $_POST['citystate']; } if (empty($_POST['information'])) { $email = FALSE; $message .= '
Please select the subject
'; } else { $email = $_POST['information']; } if($information && $citystate && $address && $phone && $email1 && $childage && $childname && $parentname){ //if($comments && $information && $email && $phone && $parentname){ $mail->Subject = "Brilliant Kids Contact Us form submitted"; $mail->Body = "
A contact us form has been submitted from the website.

Here are the details:\n\n\n <\br>"; $mail->Body .= "
Parent Name: $parentname \n <\br>"; $mail->Body .= "
Child Name: $childname \n <\br>"; $mail->Body .= "
Child Age: $childage \n <\br>"; $mail->Body .= "
Email Address: $email1\n <\br>"; $mail->Body .= "
Phone number: $phone\n <\br>"; $mail->Body .= "
Address: $address\n <\br>"; $mail->Body .= "
City State: $citystate\n <\br>"; $mail->Body .= "
Subject: $information\n <\br>"; $mail->Body .= "
Subject Other: $subjectother\n <\br>"; $mail->Body .= "
Message: $comments\n\n\n <\br>"; $mail->Body .= "
Contact Request: $contactrequest\n <\br>"; if(!$mail->Send()) { echo "Message could not be sent.

"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } else { $sent = 1; } echo "
Thank you for contacting us, We will respond to all inquiries in the order as they are received, as soon as it is possible.
Parent Name: $parentname
Child Name: $childname
Child Age: $childage
Email Address: $email1
Phone Number: $phone
Address: $address
City State: $citystate
Subject: $information
Subject Other: $subjectother
Message: $comments
Contact Request: $contactrequest
"; } } if(isset($message)) {echo "

$message

";} if($sent != 1){ echo "
Contact Information:
Your Name: *
Child's Name: *
Child Age: *
Email1: *
Phone: *
Address: *
City/State/Zip: *
Other Subject:
Please enter your comments or questions in the space provided below:


"; } ?>
© 2010 Greentopia Ranch School. All rights reserved