Send email with PHP from html form on submit : <p>I want to send my form data in email after the user submit the form. Following is my php script. This script is executing but mail never comes. Can somebody help me as I am new to php.</p>

<pre><code>&lt;?php 
if(isset($_POST['submit'])){
    $to = "saxena@designmaniac.in";
    $From = $_POST['email']; 
    $subject = "Student Admission Form";    
    $subject2 = "Copy of your form submission";
    $first_name = $_POST["name_f"]; 
    $email = $_POST["email"]; 
    $mobile_number = $_POST["mobile_number"];

    $headers = "From:" . $from;
    $headers2 = "From:" . $to;

    mail($to,$subject,$headers);
    mail($from,$subject2,$headers2);
}
?&gt; 
</code></pre>

<p>Thanks in advance
Saxena</p>
