0

So I have a email form that takes a name, email, and message. The problem is I am not receiving anything through email and Im not sure why.

Here is the code

 $headers   = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-type: text/plain; charset=iso-8859-1";
$headers[] = "$email";
$headers[] = "Reply-To: $email";
$headers[] = "X-Mailer: PHP/".phpversion();
        mail($myemail, "Portfolio Email From $name", $mess, $headers);
        $errorshere = "Message Sent";
        header("Location: index.php?errors=".$errorshere."#contactpage");
user2684521
  • 380
  • 4
  • 20

0 Answers0