title: How to configure Laravel mail.php to use built-in mail function?
body: <p>I need to send an email via the <code>mail()</code> PHP function.
  I've read somewhere that I have to change <code>driver</code> parameter in <code>config/mail.php</code> to <code>sendmail</code>. </p>
  
  <p>By default, it looks like this:</p>
  
  <pre><code>'driver' =&gt; env('MAIL_DRIVER', 'smtp'),
  </code></pre>
  
  <p>Now, it looks like this: </p>
  
  <pre><code>'driver' =&gt; 'sendmail',
  </code></pre>
  
  <p>Also tried this:</p>
  
  <pre><code>'driver' =&gt; 'mail',
  </code></pre>
  
  <p>But still, the <code>mail()</code> function doesn't work. What do I need to change?</p>