title: mail() function not working on php
body: <p>The <code>mail($to, $subject, $message, $from);</code> function isn't working in the code below.  </p>
  
  <pre><code>    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
         &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
         &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
          &lt;title&gt;Untitled Document&lt;/title&gt;
         &lt;/head&gt;
         &lt;body&gt;
          &lt;?php
           if ($_POST['Gender'] = 'M') {
            $prefix = 'Mr.';
           }else if($_POST['Gender'] = 'F') {
            $prefix = 'Miss/ Mrs.';
           }
  
           $start1 = "The message: " . $_POST['Subject'] . "/n Was sent to you at " . date('l jS \of F Y h:i:s A'); 
           $sender = "By: " .  $prefix . "  " . $_POST['Name'];
           $content = "The message : /n /n" . $_POST['Massage'];
           $sufix = "To reply to this email:  " . $_POST['Email'];
           $from = $_POST['Email'];
  
           $to = "info@mybataba.com";
           $subject = "You have a new massage on mybataba.com" . $_POST['Subject'];
           $message = $start1 . $sender . $content . $sufix
  
           mail ($to, $subject, $message, $from);  
          ?&gt;
         &lt;/body&gt;
         &lt;/html&gt;
  </code></pre>