title: php mail() script not working
body: <p>Hey guys I cannot for the life of me figure out where I went wrong here. When the form submits it takes it to a blank page. No errors or confirmed. Just Blank. Im assuming it is a syntax error but I just cant see it for some reason. Do you guys see anything?
  Here is my form code:</p>
  
  <pre><code>&lt;form method="POST" action="mailtest.php"&gt;
  
  &lt;label&gt;Name&lt;span class="req"&gt;*&lt;/span&gt;&lt;/label&gt;
  &lt;input name="name" placeholder="Type Here"&gt;
  
  &lt;label&gt;Email&lt;span class="req"&gt;*&lt;/span&gt;&lt;/label&gt;
  &lt;input name="email" type="email" placeholder="Type Here"&gt;
  
  &lt;label&gt;Subject&lt;/label&gt;
  &lt;input name="subjectf" placeholder="Type Here"&gt;
  
  &lt;label&gt;Message&lt;span class="req"&gt;*&lt;/span&gt;&lt;/label&gt;
  &lt;textarea name="message" placeholder="Type Here"&gt;&lt;/textarea&gt;
  
  &lt;input class="submit" name="submit" type="submit" value=""&gt;
  &lt;span class="right" style="color:red"&gt;* represents a mandatory field.&lt;/span&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is the php script I have on the mailtest.php page:</p>
  
  <pre><code>&lt;?php
      $name = $_POST['name'];
      $email = $_POST['email'];
      $message = $_POST['message'];
      $from = $_POST['name'];
      $to = 'rkoolman@bellsouth.net'; 
      $subject= 'new enquiry on website';
      $subjectf= $_POST['subjectf'];  
      $body = "From: $name\n E-Mail: $email\n Subject: $subjectf\n Message:\n $message";
  
      if ($_POST['submit']) {
      if ($name != '' &amp;&amp; $email != '' &amp;&amp; $message != '') {         
              if (mail ($to, $subject, $body, $from)) { 
              echo '&lt;p&gt;Your message has been sent!&lt;/p&gt;';
          } else { 
              echo '&lt;p&gt;Something went wrong, go back and try again!&lt;/p&gt;'; 
          } 
      } else {
          echo '&lt;p&gt;You need to fill in all required fields!!&lt;/p&gt;';
      }
  }
  ?&gt;
  </code></pre>