0
<?php 
$to = "jerrelldc@gmail.com";
$subject = "This is subject";
$message = "This is simple text message.";
$header = "From:".$_POST['from']." \r\n";
$retval = mail ($to,$subject,$message,$header);
if( $retval == true )  
{
    echo "Message sent successfully...";
}
else
{
    echo "Message could not be sent...";
}
?>

Why aren't emails sending? Am I missing something?

0 Answers0