function sendMail() { $to = 'Info@PrincetonCapitalLLC.com'; $subject = $_POST['txtName']; $from =$_POST['txtEmail']; $message = 'Name :'.$_POST['txtName']."\r\n". 'Email :'.$_POST['txtEmail']."\r\n". 'Phone :'.$_POST['txtPhone']."\r\n". 'Country :'.$_POST['txtCountry']."\r\n". 'How can we help you ? :'.$_POST['txtComments']."\r\n". 'How do you hear about us :'.$_POST['ddlSource']; $headers = 'From: '.$from. "\r\n" . 'Reply-To: '.$from . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); } if(isset($_POST['btnSubmit'])) { sendMail(); echo ""; } ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||