I am trying to write an emailing script that does not depend on external code. Here is my code:
<?php
$to = "[email protected]";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: [email protected]" . "\r\n" .
"CC: [email protected]";
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