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
<?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();
?>