I need to send an email using the mail () php function. The fact is that I do not know how to do this :( I read somewhere that I need to change the "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 the following: 'driver' => 'mail',
But still, the mail function does not work. Help me please. Thanks in advance)
source
share