session_start(); $msg = ''; if(isset($_POST['submit'])) { $name = trim($_POST['txtName']); $to = "info@s-cubetech.com"; $from = trim($_POST['txtemail']); $sub = "[Query] : ".trim($_POST['txtSub']); $msg = $_POST['txtMsg']; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$name.' <'.$from.'>' . "\r\n"; $headers .= 'Bcc: kush.verma@s-cubetech.com' . "\r\n"; if(mail($to, $sub, nl2br($msg), $headers)) { $msg = " "; print ''; } } ?>