Contact Us

"; //SET THE DESTINATION ADDRESSES HERE if ($mode == 'Order Enquiry'){ //ORDERS $subject = $mode.' for '.($_POST['OrderNo']); $mail_to = "myorder@glowsticks.co.uk"; } else if ($mode == 'Product Enquiry') { //PRODUCTS $subject = $mode.' for '.($_POST['ProductName']); $mail_to = "products@glowsticks.co.uk"; } else if ($mode == 'Wholesale Pricing Enquiry') { //WHOLESALE $subject = $mode; $mail_to = "wholesale@glowsticks.co.uk"; } else { //GENERAL $subject = $mode; $mail_to = "ask@glowsticks.co.uk"; }; /* FOR TESTING ONLY - OVERRIDES THE DESTINATION ADDRESS */ $mail_to = "russ.wilde@theglowcompany.co.uk"; if (get_magic_quotes_gpc()){ //magic quotes is on - we'll strip off the added slashes. $subject = stripslashes($subject); $message = stripslashes($message); $from = stripslashes($from); }; if (( eregi( "(\r|\n)", urldecode($subject.$from)) )||( contains_nasties(urldecode($from.$subject)) )||($mode == 'Order Enquiry' && contains_nasties($_POST['OrderNo']))||($mode == 'Product Enquiry' && contains_nasties($_POST['ProductName']))) { //suspected header / mime injection -- fail without re-rendering the data to the form $success = false; $msg = "Oops! We couldn't send your message."; $recookForm = false; } else { /* attempt to send the e-mail */ $path = '/home/glowouk1/php'; //THIS NEEDS TO BE SET FOR EACH WEBSITE IT IS USED ON set_include_path(get_include_path() . PATH_SEPARATOR . $path); require_once 'Mail.php'; $mailer = new Mail(); $params = array('host'=>'mail.glowsticks.co.uk', 'username'=>'glowouk1', 'password'=>'glo13937', 'port'=>'25', 'auth'=>'LOGIN'); //THESE NEED TO BE SET FOR EACH WEBSITE THIS IS USED ON $to = $mail_to; //$subject = 'Testing SMTP mail'; $body = $message; $smtp = $mailer->factory('smtp', $params); //creates a mail object with an SMTP adapter using the auth information in $params if (PEAR::isError($smtp)){ //check that we got a mail object back instead of an error $msg = $smtp->getMessage(); } else { $headers = array('From'=>$from, 'To'=>$to , 'Subject'=>$subject); $recipients = $smtp->parseRecipients(array( $to )); if (PEAR::isError($recipients)){ //check that we can actually send there... $msg = $recipients->getMessage(); $try = false; $success = false; } else{ $sent = $smtp->send($to, $headers, $body); if (PEAR::isError($sent)){ //check we got successful sending, this is where we'll hear about any login, connection, header or sending problems from the server. $msg = "Sorry! There was an error sending your e-mail - your message was not sent. Please try again.
If the problem persists, please use another contact method below.
"; $msg .= $sent->getMessage(); $recook_form = true; } else { $msg = "Thank you,
Your message has been sent"; $recook_form = false; $success = true; }; }; }; }; } else { //form failed validation $recookForm = true; if (isset($mode)) { $recookMode = $_POST['mode']; }; }; };// method = POST if ($_SERVER['REQUEST_METHOD'] == 'GET') { //get - specify the enquiry type & any parts for the form. if (isset($_GET['enquiry'])) { //check the enquiry type and r4ender the right form from the outset. switch ($_GET['enquiry']){ case "OrderEnquiry": $mode = 'Order Enquiry'; if(isset($_GET['orderNo'])){ $orderNo = $_GET['orderNo']; }; break; case "ProductEnquiry": $mode = 'Product Enquiry'; break; case "WholesalePricing": $mode = 'Wholesale Pricing Enquiry'; break; case "WebsiteEnquiry": $mode = 'Website Enquiry'; break; default: //render the choice page - they didn't specify the enquiry type - or not one that we use. $mode = ''; break; }; }; }; if (!$success) { ?>

Contact Us

Sorry! We couldn't send your message"); }; if ($orderNoError){ echo("

Please include your order number or your postcode.

"); }; if ($nameError){ echo("

Please include your name.

"); }; if ($emailError){ echo("

Your e-mail address appears to be invalid.

"); }; if ($productNameError){ echo("

Please include the name of the product.

"); }; if ($messageError){ echo("

Please enter a message.

"); }; if (isset($msg)){ echo("

$msg

"); }; ?>

Please tell us what your enquiry is about.

This helps us make sure that your message gets to the right person and speeds up our replies to you.

About Your Order...

Quick solutions to common enquiries:

  • If you wish to check on the status of your order, you can do this online using our Order Tracker.
    You will need your order number from your order confirmation e-mail.
  • If there is a mistake in your contact or delivery details on your order, please telephone us with your ammendments immediately.
  • Unfortunately it is not currently possible to add or amend any products on your order once the order has been placed.

Still need help? Please use this form to send us a message. It's just like an e-mail, but it helps cut down on unwanted e-mail (spam).

/>
/>
/>
If you do not have your order number, please try to include as much information about your order as possible. Try to include Your postcode, the date it was placed etc. so that we can track down your order.

« let me choose again

By Phone or Fax:

Tel: 01302 771 446
Fax: 01302 771 969

By Snail Mail

4 Delta Court
Doncaster International Airport
Doncaster
DN9 3GN

About a product

Need help? Please use this form to send us a message. It's just like an e-mail, but it helps cut down on unwanted e-mail (spam).

/>
/>
/>

« let me choose again

By Phone or Fax:

Tel: 01302 771 446
Fax: 01302 771 969

By Snail Mail

4 Delta Court
Doncaster International Airport
Doncaster
DN9 3GN

Wholesale Pricing

Need help? Please use this form to send us a message. It's just like an e-mail, but it helps cut down on unwanted e-mail (spam).

/>
/>
If you wish to request a printed catalogue, please make sure you have included your full postal address.

« let me choose again

By Phone or Fax:

Tel: 01302 771 446
Fax: 01302 771 969

By Snail Mail

4 Delta Court
Doncaster International Airport
Doncaster
DN9 3GN

About something else...

Please use this form to send us a message. It's just like an e-mail, but it helps cut down on unwanted e-mail (spam).

/>
/>

« let me choose again

By Phone or Fax:

Tel: 01302 771 446
Fax: 01302 771 969

By Snail Mail

4 Delta Court
Doncaster International Airport
Doncaster
DN9 3GN

Thank you! Your message has been sent."); }; ?>