I have found loads of topic regarding email not sent but none got me to help. I am running the following code for firing an email from my web server .
$to = "someone1000@gmail.com";
$subject = 'File Report On '.$date;
$txt = $body;
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: suose@hotmail.com" . "\r\n" .
"CC: rahs1345@gmail.com";
mail($to,$subject,$txt,$headers);
The above code running fine on other servers . Now the web server which i am using for this code is behind a VPN connection and the address is private.
I have tried PHPMailer , i have tried inbuilt mail function, on both the cases i have tried to throw errors but there was no error at all , every time it says email sent. I am just suspecting is it has anything to do with the web server as it is behind a private connection?