R
R
RMate2019-06-30 15:27:52
Laravel
RMate, 2019-06-30 15:27:52

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

Well, the most interesting thing is that if you send a letter using the mail() function, everything arrives correctly. And not even spam.
I ask for help, where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-06-30
@MrLongMan

Can I see a piece of code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question