I am trying to write an emailing script that does not depend on external code. Here is my code:
<?php
$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
mail($to,$subject,$txt,$headers);
?>
However whenever I run the script it does nothing. It returns no errors it simply does not email to my email. Am I doing something wrong or is it something else? PS I use php 5.2