wp_mail() is not working for me in wordpress : <p>this is my template code and it is not sending mails to customers in wordpress. please anyone help me to make right this code. thanks</p>

<pre><code>&lt;?php
/*
Template name: contact
*/
get_header(); 
$email="test@gmail.com";
$subject="testing";
$message = "hi this is test";
$headers = 'From:' . "testing@gmail.com";

if(wp_mail($email, $subject, $message, $headers))
{
echo "sending mail test";
}
else
{
     echo "not";
}

get_footer();
?&gt;
</code></pre>
