I have an issue and I cannot figure out if its my PHP or server issue.
I created a contact form 'contact.php' its all on the same page, the HTML &PHP.
I Have checked the code over and over and cannot find any error. I do not receive any emails at the final destination email. Can anyone help me? This is the code I have
Here is my email code:
  $to = 'MY EMAIL ADDRESS GOES HERE';
    $subject = 'New Contact Submission on ';
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
 $body = <<<EMAIL
     Hi! My name is $name
     My Email is $email
     $message
     EMAIL;
        $header = "from: $email";
      if($_POST){
        if($name == '' || $email == '' || $message == ''){
            $feedback = 'Please Fill all areas';
        }else{
             mail($to, $subject, $body, $header);
         $feedback = 'Thank you! We will contact you soon!';
         }
     }
?>
Here is my HTML code for the contact form. Remember, I have this in 1 single 'contact.php' file.
                        <form action="" method="post">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="name" class="sr-only" >Name</label>
                                    <input placeholder="Name" id="name" type="text" class="form-control input-lg">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="email" class="sr-only"  >Email</label>
                                    <input placeholder="Email" id="email" type="text" class="form-control input-lg">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="message" class="sr-only"  >Message</label>
                                    <textarea placeholder="Message" id="message" class="form-control input-lg" rows="3"></textarea>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <input type="submit" class="btn btn-primary btn-lg " action="" value="Send">
                                    <p id="feedback"><?php echo $feedback;?></p>
                                </div>
                            </div>
                        </form>
 
     
     
    