Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

PHP mail() not working.

I have this code:
<?php $to = "ejer@ejer.rf.gd"; $subject = "This is a test"; $message = "Hi! This is a test ."; $from = "noreply@ejer.rf.gd"; $headers = "From:" . $from; if(mail($to,$subject,$message,$headers)){ echo "Mail Sent."; } ?>
and its not working. I tried other codes from websites like W3 Schools and other simple codes and none of them works. Even when i set the adress to my personal email (This one is on my domain.) it still doesnt send any emails. (It says 'Mail Sent." tho)

Comments

Sign In or Register to comment.