N
N
nick1m2022-03-02 00:32:44
Laravel
nick1m, 2022-03-02 00:32:44

Mail config in Laravel. How to set up sending mail through a local msmpt server?

Hello.
On the local machine (Linux), I installed and configured the MSMPT mail server. Configured it to work with my smtp on the server.
I registered it as a mail handler in the PHP config.
Through the console and the PHP mail() function under Apache, everything works fine.
But I can't figure out how to configure laravel to send mail via MSMPT.
In Laravel, its drivers, if you specify MAIL_MAILER=mail in .env, it doesn’t work, it says there is no such mailer:
InvalidArgumentException
Mailer [mail] is not defined.

Please tell me how to set up.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question