It's more likely filtered as spam or erroring as you haven't used line terminations. See adaptation of my test file - call in testmail.php or something
<?
//susie_maileau
//set date and to string
$today_date=strtotime(today);
$today_date=date('Y-m-d H:i:s',$today_date);
//set server type eol characters - see php.net etc
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
$s_eol = "\r\n";
} elseif (strtoupper(substr(PHP_OS, 0, 3) == 'MAC')) {
$s_eol = "\r";
} else {
$s_eol = "\n";
}
//echo server type
echo "OS is :: ".PHP_OS;
echo "<hr /><br />\n";
//=============================================
//ensure mail is working in basic form to multiple addresses - ALWAYS WORKS
$subject = 'MAIL SENT TEST 1 '.$today_date; $out = 'Hello'."\n".
'This is a test on'.$today_date."\n\n";
echo "out test1=".$out." subject test1=".$subject." <br />";
if (!mail("email@somthing.com", $subject, $out)) echo "error with mail<br />"; else echo "$today_date ok!<br />"; echo "<hr /><br />\n";
//=============================================
//prove mail working with strings into mail() - WORKS
$subject = 'test2'; $out = 'Hello'."\n".
'This is a test on'.$today_date."\n\n"; $to = "Susie<email@somthing.com>, Lisa<semail@somthing.com>";
echo "out test2=".$out." subject test2=".$subject." to test2=".$to."<br />";
if (!mail($to, $subject, $out))
echo "error with mail<br />";
else
echo "$today_date ok!<br />";
echo "<hr /><br />\n";
//=============================================
//prove mail working with strings into mail() - WORKS
$subject = 'test2a'; $out = 'Hello'."\n".
'This is a test on'.$today_date."\n\n"; $to = "email@something.com";
echo "out test2a=".$out." subject test2a=".$subject." to test2a=".$to."<br />";
if (!mail($to, $subject, $out))
echo "error with mail<br />";
else
echo "$today_date ok!<br />";
echo "<hr /><br />\n";
//=============================================
//prove mail working with strings into mail() - WORKS
$subject = 'test2b'; $out = 'Hello'."\n".
'This is a test on'.$today_date."\n\n"; $to = "Susie <email@somthing.com>";
echo "out test2b=".$out." subject test2b=".$subject." to test2b=".$to."<br />";
if (!mail($to, $subject, $out))
echo "error with mail<br />";
else
echo "$today_date ok!<br />";
echo "<hr /><br />\n";
//=============================================
$subject = 'test3';
$out = 'Hello'."\n".
'This is a test on'.$today_date."\n\n";
$headers = 'From: Your Server<servernoreply@somthing.com>'.$s_eol.
'X-Sender: Your Server<email@somthing.com>'.$s_eol.
'X-Mailer: PHP/'.phpversion().$s_eol.
'Return-Path: Your Server<email@somthing.com>'.$s_eol;
echo "out test3=".$out." subject test3=".$subject." headers test3=".$headers."<br />";
if (!mail('Susie<email@somthing.com>,Lisa<semail@somthing.com>',
$subject, $out, $headers))
echo "error with mail<br />";
else
echo "$today_date ok!<br />";
echo "<hr /><br />\n";
//=============================================
//show phpinfo
echo phpinfo();
?>