Answer the question
In order to leave comments, you need to log in
How to send message to mail using mail/sendmail [Laravel]?
Hello!
I'm trying to send a message from my server, not via smtp and not via api.
I specify MAIL_DRIVER=mail in .env, respectively, everything is specified in /config/mail.php in the same way.
I clear the config cache using php artisan config:clear
I'm trying to send a message - there are no errors, there are no letters in the mail either. In spam - similarly, no.
in Mail::failures() I see my email, the reason why it is there - I can not find out.
When I change the driver for sending messages to "log" - I see a similar picture
[2019-06-30 12:13:39] local.DEBUG: Message-ID: <[email protected]>
Date: Sun, 30 Jun 2019 12:13:39 +0000
Subject: test
From: sender name To: MIME
destination
-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
TEST MESSAGE
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