Answer the question
In order to leave comments, you need to log in
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]', '');
});
Answer the question
In order to leave comments, you need to log in
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)
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 questionAsk a Question
731 491 924 answers to any question