email - PHP mail script does not send mail -


i have mail script on page: mail('myadress@server.com', 'new client added user', 'test message'); not receive anything! (of course added real adress). tried 2 different adresses, looked in spam folder, etc... nothing. script executes fine.

is there log can view or invoke see happened?

thank help!

 <?php $to = "someone@example.com";  $subject = "test mail"; $message = "hello! simple email message.";  $from = "someonelse@example.com";   $headers = "from:" . $from;   mail($to,$subject,$message,$headers);  echo "mail sent.";  ?> 

try going work u ....


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -