E
E
eugene1592021-01-26 00:25:09
Laravel
eugene159, 2021-01-26 00:25:09

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\logsthe 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', 'Текст темы', 'Текст сообщения');

The mail has arrived.

How to make it so that it comes with the sendmail setup? How can I understand why she does not come?

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