0

Парни, хочу из контроллера сделать отправку письма, помогите-

$reciever = 'poluchatel@mailx.com';
$name = 'MySite';
$email = 'no-reply@mysite.com';
$title = 'Уведомление';
$content = 'Сообщаем Вам, шо вы молодец!';

\Mail::send(['name' => $name, 'email' => $email, 'title' => $title, 'content' => $content], function ($message) {

        $message->to('$reciever')->subject('Subject of the message!');
    });       
   }
3

1 ответ 1

0
Mail::raw('Текст письма', function($message)
{
    $message->from('us@example.com', 'Laravel');

    $message->to('foo@example.com')->cc('bar@example.com');
});

сделал как в доке.

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.