Is php mail() function not working today? This is my base code:
<!-- NO HTML CODE ABOVE -->
<?php
$email = "rogeriobsoares5@gmail.com";
$subject = "Email Test";
$message = "Hello, boy!";
mail($email, $subject, $message, "From: English U.P.<englishup19@gmail.com>\nX-Mailer: PHP/" . phpversion());
sentmessage = true;
?>
<HTML charset="utf-8">
<HEAD>
<TITLE>MAILER</TITLE>
</HEAD>
<BODY>
<?php
if(isset($sentmessage)){
if($sentmessage == true){
echo "Message sent successfully!";
}
}
?>
</BODY>
</HTML>
I've been testing several times today, but I'm not receiving the messages at all. Why is that the case? Would anybody know the answer? Thank you! AN IMPORTANT PIECE OF INFORMATION: It's not working when I send to my gmail accounts, but only when I set $email as my Hotmail account. Why?