alert(\"Error: $msg\");history.go(-1)"; exit; } function user_message($msg) { echo ""; exit; } function send_mail() { global $Name, $Company, $Email, $Position, $Phone, $Fax, $Address, $Suburb, $State, $Postcode, $Comments; $mail_parts["mail_to"] = "support@ausmanufacturers.com.au";//$mail_to; $mail_parts["mail_from"] = "$Name <$Email>"; //$mail_parts["mail_reply_to"] = $mail_reply_to; $mail_parts["mail_cc"] = "";//$mail_cc; $mail_parts["mail_bcc"] = "";//$mail_bcc; $mail_parts["mail_subject"] = "Ausmanufacturers Email Form -"; $mail_body = ""; $mail_body .= "Below is the form submitted by $Name ($Email)\n---------------------------------------------------------------------------\n"; $mail_body .= "Company Name: $Company\nPosition in Company: $Position\nPhone: $Phone\nFax: $Fax\n"; $mail_body .= "Address: $Address\nSuburb: $Suburb\nState: $State Post Code: $Postcode\n\n"; $mail_body .= "\nComments:\n$Comments\n\n\n".$_SERVER["REMOTE_ADDR"]; //list($ipA, $ipB, $ipC, $ipD) = explode(".",$_SERVER["REMOTE_ADDR"]); $mail_parts["mail_body"] = trim($mail_body); if(my_mail($mail_parts)) user_message("Your email has been successfully sent. Thank You."); else error_message("An unknown error occurred while attempting to send your e-mail. Please try again. If the error continues you can email us directly at support@ausmanufacturers.com.au"); } function my_mail($mail_parts) { $mail_to = $mail_parts["mail_to"]; $mail_from = $mail_parts["mail_from"]; $mail_reply_to = "";//$mail_parts["mail_reply_to"]; $mail_cc = $mail_parts["mail_cc"]; $mail_bcc = $mail_parts["mail_bcc"]; $mail_subject = $mail_parts["mail_subject"]; $mail_body = $mail_parts["mail_body"]; if(empty($mail_to)) error_message("Empty to field!"); if(empty($mail_subject)) error_message("Empty subject!"); if(empty($mail_body)) error_message("Empty body! "); $mail_to = str_replace(";", ",", $mail_to); $mail_headers = ''; if(!empty($mail_from)) $mail_headers .= "From: $mail_from\n"; if(!empty($mail_reply_to)) $mail_headers .= "Reply-to: $mail_reply_to\n"; if(!empty($mail_cc)) $mail_headers .= "Cc: " . str_replace(";", ",", $mail_cc) . "\n"; if(!empty($mail_bcc)) $mail_headers .= "Bcc: " . str_replace(";", ",", $mail_bcc) . "\n"; $mail_subject = strip_tags(stripslashes($mail_subject)); $mail_body = strip_tags(stripslashes($mail_body)); return mail($mail_to,$mail_subject,$mail_body,$mail_headers); } function preprocessField($value) { //Remove line feeds $ret = str_replace("\r", "", $value); $ret = str_replace("\n", "", $ret); // Remove injected headers //$find = array("/bcc\:/i", "/Content\-Type\:/i", "/Mime\-Type\:/i";, "/cc\:/i", "/to\:/i"); $ret = preg_replace("/bcc\:/i", "**bogus header removed**", $ret); $ret = preg_replace("/Content\-Type\:/i", "**bogus header removed**", $ret); $ret = preg_replace("/Mime\-Type\:/i", "**bogus header removed**", $ret); $ret = preg_replace("/cc\:/i", "**bogus header removed**", $ret); $ret = preg_replace("/to\:/i", "**bogus header removed**", $ret); return $ret; } ?>
Australian Manufacturers Guide

   
 
 
 

Use our web-based email form to send us your questions or submit your interest in listing on our guide. For pricing click here
 
Email About :
Name:
Company:
Position:
Address:
Suburb:
State:
Post Code:
Telephone:
Fax:
Email:
Enter your inquiries
or comments here:

 
   
Australian Manufacturers Directory