title: the mail function is not active on my intranet website
body: <p>I've just built a website for my company and have placed it on a server. It's working perfectly. The website contains a form page that collects request from staff. The form sends the information to the database. I placed code there for it to send a mail to my inbox so that I can be notified after a staff member fills the form. Unfortunately, the mail doesn't get to me. Please I need help on how to go about it.</p>
  
  <p>I am using XAMPP at my back end. Below is the code that involves the mail part:</p>
  
  <pre><code>&lt;?php
  $to = "seyioyedeji31@yahoo.com";
  $subject = "Test mail";
  $message = "&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;MIS HELP SUCCESSFUL&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Here are the query details:&lt;/p&gt;
      &lt;p&gt;&lt;table border=1 style= background:#0B0B61&gt;
         &lt;tr&gt;&lt;td&gt; SENDER: $_POST[fullname]&lt;/td&gt;&lt;/tr&gt; 
         &lt;tr&gt;&lt;td&gt; DEPARTMENT: $_POST[department]&lt;/td&gt;&lt;/tr&gt;
         &lt;tr&gt;&lt;td&gt; NATURE OF PROBLEM: $_POST[nature]&lt;/td&gt;&lt;/tr&gt;
         &lt;tr&gt;&lt;td&gt; DETAILS: $_POST[mail]&lt;td&gt;&lt;/tr&gt;
         &lt;/table&gt;&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;";
  
  $from = "seyioyedeji@mis.com";
  $headers = "From:" . $from;
  mail($to,$subject,$message,$headers);
  echo "Mail Sent.";
  ?&gt; 
  </code></pre>