title: Can't send PHP mail! Form mail
body: <pre><code>    &lt;form action="" enctype="text/plain" method="post"&gt;
      &lt;textarea name="link" style="margin-left: 0px; margin-right: 0px; width: 591px;" cols="1" rows="1" placeholder="Link"&gt;&lt;/textarea&gt;
  
      &lt;textarea name="username" style="margin-left: 0px; margin-right: 0px; width: 591px;" cols="1" rows="1" placeholder="Username"&gt;&lt;/textarea&gt;
  
      &lt;input type="submit" value="send" /&gt;&lt;/form&gt;
  &lt;div style="color: red;"&gt;*Warning&lt;/div&gt;
  - Do not submit the request more than once if you do not want duplicate items.
  
  &lt;?php
  $to      = 'admin@bdeas.com';
  $subject = 'Market Purchase';
  $message = htmlspecialchars($_POST['username']);
  $message2 = htmlspecialchars($_POST['name'])
  $headers = 'From: admin@bdeas.com' . "\r\n" .
      'Reply-To: admin@bdeas.com' . "\r\n" .
      'X-Mailer: PHP/' . phpversion();
  
  mail($to, $subject, $message, $message2, $headers);
  ?&gt; 
  </code></pre>
  
  <p>I have this code here but I can't seem to get this code to send the mail. I have looked at the other posts but they don't help me as I need the form details to send the mail. </p>
  
  <p>EDIT! Could you tell me if there is anything wrong in the code?</p>