I tried with this script to check the mail server is working or not
<?php
$to = "
[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "
[email protected]";
$headers = "From: " . $from;
mail($to,$subject,$message,$headers);
return "Attempted Mail Send.";
?>
If this is the right method to check the mail server issue.
Quote from: BobRay at Jan 23, 2013, 02:59 AMContact your host and ask what the correct SMTP settings are.