Answer the question
In order to leave comments, you need to log in
Why is mail not coming from the Laravel site?
If you specify smtp and other settings required for smtp in the .env file in MAIL_DRIVER, then mail comes.
If you specify log in MAIL_DRIVER, then mail appears in \laravel\storage\logs
the form of a .txt file.
But if you specify sendmail, then a message is displayed that the mail has been sent, there is no error in the Network (status 200), but the mail does not come.
I tried using just the mail function, here is the code:
<?php
mail('мой-ящик@gmail.com', 'Текст темы', 'Текст сообщения');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question