<?php
 

 
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$marry = $_POST['marry'];
$dob = $_POST['dob'];
 
 
	
// Create the email and send the message
$to = 'contact@demo.71mail.online'; // change your email address here.
$email_subject = "Demo 71Mail:  $email";
$email_body = "You have received a new message.\n\n"."Here are the details: 
    
    
    
     \n\n Information from Your Demo 71Mail
   
    \n\n FULL NAME : $name
     \n\n EMAIL ADDRESS : $email
      \n\n PHONE NUMBER : $phone
       \n\n MARRITAL STATUS : $marry
    
    
    \n\ DATE OF BIRTH:\n$dob";
    
$headers = "From: noreply@demo.71mail.online\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers .= "Reply-To: $email_address";	
mail($to,$email_subject,$email_body,$headers);

header("Location: enroll_success.php");
return true;			
?>

 

 
