0

Email sender will not send an email

after filling out the form and clicking on Send it seems that everything works as it should but email has not come after one hour

<?php
  if(isset($_POST['SUBMIT'])){
    $To = 'your@email.com';
    $From = $_POST['Email'];
    $Full_Name = $_POST['Full_Name'];
    $Company = $_POST['Company'];
    $Phone_Number = $_POST['Phone_Number'];
    $Subject = 'Hello World';

    $Message = $Full_Name . " " . $Company . " " . $Phone_Number . "Wrote the Following" . \n\n . $_POST['Message'];

    $Header = "From:" . $From;

    mail($To,$Subject,$Message,$Header) or die("Error!");

  };

?>

Knee
  • 1
  • Well, thank you, but I don't know how else to ask the question what could it be that an email didn't come up with a code error? – Knee May 30 '19 at 22:21
  • read through the answer in the dupe, there are a lot of possibilities, and your in the best position to debug this –  May 30 '19 at 22:23
  • Yeah thank you :) I already read it I come to it but I would be glad if someone wrote me here :) – Knee May 30 '19 at 22:30
  • I tried most of the things mentioned in the post and still nothing ..: / – Knee May 30 '19 at 22:48

0 Answers0