PHP mail() not working help me please
<p>can someone please help me figure out why this isn't sending? I'm new to PHP. </p>

<p>It's for a contact form on my website. I'm sending from my server (not localhost) and receiving the console message "Mail not sent"</p>

<pre><code>&lt;?php

include 'ChromePhp.php';

if ($_SERVER['REQUEST_METHOD'] == 'POST'){

   $to = 'me@myemail.com';
   $subject = 'Email from Me';
   $message = $_POST['email'];

     if(mail($to, $subject, $message)){
        ChromePHP::log( 'Mail Sent');
     }else{
        ChromePHP::log( 'Mail Not Sent');
     }
}

?&gt;
</code></pre>

<p>I realise this question has been asked before, but I can't find an answer that works. Thanks in advance!</p>
