G
G
gomer17262018-09-16 11:01:06
SMTP
gomer1726, 2018-09-16 11:01:06

How to send emails without smtp on laravel 5.6?

Mail::send('temp.email', [], function ($m) {
            $m->from('[email protected]', 'Sender');
            $m->to('[email protected]', 'Receiver')->subject('Тестовое письмо с HTML');
            $m->cc('[email protected]', '');
        });

Here is the code
--------
And here is what I get
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "
config and env
driver set to sendmail

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mShpakov, 2018-09-16
@mShpakov

What is not clear? You need to activate a paid account in the service that you have chosen
(And register access from it in the configs)

B
Boris Korobkov, 2018-09-16
@BorisKorobkov

SMTP is a protocol for sending emails. You can send mail() , you can use a library included in Laravel, you can use one of hundreds of other libraries, you can use a third-party service.
In any case, the letter is sent by the mail server. Most of them are anti-spam, so they require SMTP authentication. You can register for free on Gmail and send through it (naturally, not spam, but within reasonable limits).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question