I need to send an email via the mail() PHP function.
I've read somewhere that I have to change driver parameter in config/mail.php to sendmail.
By default, it looks like this:
'driver' => env('MAIL_DRIVER', 'smtp'),
Now, it looks like this:
'driver' => 'sendmail',
Also tried this:
'driver' => 'mail',
But still, the mail() function doesn't work. What do I need to change?