4)) { if(isset($_POST['send'])){ $cname = $_POST['name']; $cemail = $_POST['email']; $cdate2 = $_POST['date']; $ctime = $_POST['time']; $cphone = $_POST['phone']; $cdcondition = $_POST['type']; $cmessage = $_POST['request']; require 'phpmailer/PHPMailerAutoload.php'; $mail = new PHPMailer(); $mail->CharSet = "utf-8"; $mail->IsSMTP(); //$mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->Username = "contactus@publicizemedia.com"; $mail->Password = '@,.([U05L(3W'; $mail->SMTPSecure = "tls"; $mail->Host = "business27.web-hosting.com"; $mail->Port = "587"; $mail->setFrom('contactus@publicizemedia.com', 'Publicize Media'); $mail->addAddress('project@publicizemedia.com'); $mail->addReplyTo($cemail); $mail->Subject = 'Contact Us At www.PublicizeMedia.com'; $mail->IsHTML(true); $mail->Body = '

Publicize Media Outsourcing Services 
Email Subject:'.$cdcondition.'
Name:'.$cname.'
Email:'.$cemail.'
Schedule of Appointment:'.$cdate2.' '.$ctime.'
Phone:'.$cphone.'
Customer message or request:'.htmlentities($cmessage).'
'; if(substr_count($cmessage,'a href=')==0 && substr_count($cmessage,'www.')==0 && substr_count($cmessage,'http://')==0 && substr_count($cmessage,'src=')==0 && substr_count($cmessage,'.exe')==0 && substr_count($cmessage,'.php')==0 && substr_count($cmessage,'.net')==0 && substr_count($cmessage,'.com')==0) { if(!$mail->send()) { echo 'Message could not be sent.'; } else { header ('location:request-done.html#main-content'); } } else { $cErr = true; } } else { $bErr = true; } ?> PublicizeMedia.Com