title: Ran into an error with my PHP file, won't send email despite changes made to xampp files
body: <p>As stated above, my PHP file won't send to the email requested. I get this error message: 'Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in...' I have $from in there and I have changed the 'from' email in the php.ini file in xampp. This is driving me crazy can anybody help?</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;?php
  $name = $_POST['name'];
  $request = $_POST['request'];
  
  $from = "fromemil@email.com";
  $to = "toemail@email.com";
  $subject = "It's just a test";
  $body = "This is just a test to see if things are working okay $request";
  
  mail ($from,$to,$subject,$body); 
  
  echo "Message sent!"
  ?&gt;
  </code></pre>