Why is my PHP mail script not working?

whatever_noone

New member
This is basically it:

<?php
$to = " MY EMAIL HERE ";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

It says the email was sent, but there's no message in my inbox.
 
Back
Top