Send mail with php mail() function.
Please review my code. It is not sending mail and the landing page is not being called. I have tested with another script to send mail on my host and it is working fine.
<?php
> if (isset($_POST['submit'])) {
> 
>     $name=$_POST['name'];
>     $mailFrom=$_POST['email'];
>     $message=$_POST['message'];
>     $mobile=$_POST['mobile'];
> 
> 
>     $mailTo="xxxxx";
>     $headers= "From : ".$mailFrom;
>     $txt ="You have received an email from".$name. ".\n\n".$message. ".\n\n Mobile :".$mobile;
>     $subject="Information Request";
> mail($mailTo, $subject, $txt, $headers);
> 
> header("Location: xxx.html"); //to create a landing page and test
> }
> ?>
 
    