alert(\"Error: $msg\");history.go(-1)"; exit; } function user_message($msg) { echo ""; exit; } function send_mail() { //global $mail_to, $mail_cc, $mail_bcc, $mail_from_name, $mail_from, $mail_reply_to; //global $mail_body, $mail_subject; global $C_Name, $Name, $Email, $Position, $Phone, $Fax, $Mobile, $Address1, $Address2, $Suburb, $State, $PostCode, $Country, $Subject, $Comments, $Contact, $ContactVia; $mail_parts["mail_to"] = "info@ai.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"] = "ben@ai.com.au";//$mail_bcc; $mail_parts["mail_subject"] = "AI.COM.AU Contact Form -"; $mail_body = ""; $mail_body .= "Below is the form submitted by $Name ($Email)\n---------------------------------------------------------------------------\n"; $mail_body .= "Company Name: $C_Name\nPosition in Company: $Position\nPhone: $Phone\nFax: $Fax\nMobile: $Mobile\n"; $mail_body .= "Address: $Address1 $Address2\nSuburb: $Suburb\nState: $State Post Code: $PostCode\nCountry: $Country\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 info@ai.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 Business on the Internet
         
   
Contact Us

Australian Business on the Internet
PO Box 90,
Moonee Ponds Vic 3039

Ph: 1300 786 572
Fax: 1300 786 582

If you would like to contact us by email please complete and submit the form below.
 
Company Name : *
Name : *
Position :
E-mail : *
Phone : *
Fax :
Mobile :
Address :
 
Suburb / City :
State :
Post Code :
Country : *
Comments :

Bulk SMS Text messenging
Bulk SMS Easy to use corporate text messenging solution.
 
 
• Web Design     • Web Hosting     • Database Development     • Search Engine Optimisation

Product & Services
| Portfolio | Contact Us

I like " class="nB">Blue | " class="nY">Yellow