0 ) { contact( $arr_msg ) ; exit() ; } include("./common/htmlMimeMail.php") ; $o_mail= new htmlMimeMail() ; $message = "Full Name: $salute $name\r\n"; $message .= "Company: $company\r\n"; $message .= "Address: $address\r\n"; $message .= "City: $city\r\n"; $message .= "Country: $country\r\n"; $message .= "Tel: $tel1 - $tel2 - $tel3\r\n"; $message .= "Fax: $fax1 - $fax2 - $fax3\r\n"; $message .= "Email: $email\r\n"; $message .= "Comment: \r\n$comment\r\n"; $o_mail->setText($message ); $o_mail->setFrom($email) ; $o_mail->setSubject("Contact From [indochina-ventures.com]") ; $result = $o_mail->send( array($admin_email) ); header("Location: contact_thanks.htm") ; exit() ; } else { contact() ; } function contact( $arr_msg="" ) { if( ! is_array($arr_msg) ) $arr_msg= array() ; include("./common/cls_template.php") ; $s_filename= "contact.html" ; $o_template= new cls_template( $s_filename ) ; if( $o_template->b_error ) { echo("Cannot find this template file $s_filename. Please check it again.") ; exit() ; } $s_content= $o_template->m_content ; unset( $o_template ) ; $s_content= str_replace( "{message}", join("
", $arr_msg), $s_content ) ; print $s_content ; exit() ; } ?>