title: not receiving php mail() messages from remote host
body: <p>I have a email form <a href="http://keilcarpenter.somee.com/" rel="nofollow">Here</a> and am invoking the <code>mail()</code> function. for some reason I am not receiving any emails to my email account. My only guess is that it could be some config on the server</p>
  
  <p>Here is my php script:</p>
  
  <pre><code>&lt;?php
  header('Content-type: application/json');
  $status = array(
      'type'=&gt;'success',
      'message'=&gt;'Email sent!'
  );
  
  $name = @trim(stripslashes($_POST['name'])); 
  $email = @trim(stripslashes($_POST['email'])); 
  $subject = @trim(stripslashes($_POST['subject'])); 
  $message = @trim(stripslashes($_POST['message'])); 
  
  $email_from = $email;
  $email_to = 'keilcarpenter01@gmail.com';
  
  $body = 'Name: ' . $name . "\n\n" . 'Email: ' . $email . "\n\n" . 'Subject: ' . $subject . "\n\n" . 'Message: ' . $message;
  
  $success = @mail($email_to, $subject, $body, 'From: &lt;'.$email_from.'&gt;');
  
  echo json_encode($status);
  die; 
  </code></pre>
  
  <p>And the html form:</p>
  
  <pre><code>          &lt;h1&gt;Contact Form&lt;/h1&gt;
                      &lt;p&gt;Send me a message and I will get back to you!&lt;/p&gt;
                      &lt;div class="status alert alert-success" style="display: none"&gt;&lt;/div&gt;
                      &lt;form id="main-contact-form" class="contact-form" name="contact-form" method="post" action="sendemail.php" role="form"&gt;
                          &lt;div class="row"&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;input type="text" name="name" class="form-control" required="required" placeholder="Name"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="col-sm-6"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;input type="text" name="email" class="form-control" required="required" placeholder="Email address"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class="row"&gt;
                              &lt;div class="col-sm-12"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;textarea name="message" id="message" required="required" class="form-control" rows="8" placeholder="Message"&gt;&lt;/textarea&gt;
                                  &lt;/div&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;button type="submit" class="btn btn-danger btn-lg"&gt;Send Message&lt;/button&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  </code></pre>
  
  <p>Could it be some config on the remote host or something wrong on my end?</p>
  
  <p>I read that if your sending from localhost then you need to config the php.ini and sendmail.ini so I know that is out of the question.</p>
  
  <p>Would PHPMailer be better to use?</p>