"); while($row = mysqli_fetch_array($getid)) { $user_email = $row['user_email']; } if(isset($_POST['name']) && $_POST['name']!="" && $_COOKIE['user']) { $org = $_POST['org']; include_once("inc/classes/mailer.php"); $to = $user_email; //"warreng@zingfling.com"; //$toemail[$ind]; if (isset($proemail) && $proemail != '' && $proemail != $user_email) { $to .= ", $proemail"; } $subject = trim(htmlentities($_POST['subject'])); $phone = trim(htmlentities($_POST['phone'])); $mode = "html"; $from = ini_set("sendmail_from",trim(htmlentities($_POST['email']))); $body = ""; $objmail = new Mailer($to,$subject,$body,$from); $message = trim(htmlentities($_POST['message'])); //$Success = $objmail->Send_News_Letter($mode,trim(htmlentities($_REQUEST['message'],ENT_QUOTES))); $Success = $objmail->contactUsMail($_POST,$mode,$id); $msg = "Thank you, your message has been sent! Someone from our office will follow up as soon as possible."; // database update $message = mysqli_real_escape_string($conn, $message); $subject = mysqli_real_escape_string($conn, $subject); $phone = mysqli_real_escape_string($conn, preg_replace('/[^0-9]/','',$phone)); $from = mysqli_real_escape_string($conn, trim(htmlentities($_POST['email']))); $today = date("Y-m-d"); $sql = "INSERT INTO azdp_messages (msg_type, msg_origin, msg_user_id, msg_practice_id, msg_emailfrom, msg_subject, msg_phone, msg_body, msg_mailedto, msg_ip, msg_date) VALUES ('u', '$org', $uid, $practice_id,'$from','$subject','$phone','$message','$to','$ip','$today')"; $c = mysqli_query($conn, $sql) or die("
SYSTEM ERROR: Unable to Save Message
".mysqli_error($conn)."

$sql
"); $new_pid = mysqli_insert_id($conn); } echo ''; ?> Dental Portal :: Contact

To email , please fill in all fields. To schedule an appointment or if you have an emergency, please utilize the main office number,

 


,

© 2007-2019 Ecropolis