Hey i m getting the message that "Message is sent" but when i check my mail its not there. Why this PhpMailer is not working ?



<?php
require 'phpmailer/PHPMailerAutoload.php';
if(isset($_POST['email']) && isset($_POST['name']) && isset($_POST['message'])){
$mail = new PHPMailer;
                                                                           
$mail->From = $_POST['email'];
$mail->FromName = $_POST['name'];
$mail->AddAddress('me@technimatics.net', 'Pratt Josh');  

$mail->Subject = 'Join us';
$mail->Body    = $_POST['message'];

if(!$mail->Send()) {
   echo 'Message could not be sent.';
   echo 'Mailer Error: ' . $mail->ErrorInfo;
   exit;
}

echo 'Message has been sent';

}
else{
  echo "fill all fields";
}



?>