Spec-Zone.ru › Laravel 5.6

MailChannel

class MailChannel (View source)

Свойства

protected Mailer $mailer Реализация почтового сервиса.
protected Markdown $markdown Реализация Markdown.

Методы

void __construct(Mailer $mailer, Markdown $markdown)

Создать новый экземпляр канала почты.

void send(mixed $notifiable, Notification $notification)

Отправить уведомление.

Closure messageBuilder(mixed $notifiable, Notification $notification, MailMessage $message)

Получить Closure для почтового сообщения.

string|array buildView(MailMessage $message)

Сформировать представление уведомления.

void buildMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)

Сформировать почтовое сообщение.

void addressMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)

Указать адресатов почтового сообщения.

void addSender(Message $mailMessage, MailMessage $message)

Добавить адреса "отправителя" и "ответного адреса" в сообщение.

mixed getRecipients(mixed $notifiable, Notification $notification, MailMessage $message)

Получить адресатов данного сообщения.

void addAttachments(Message $mailMessage, MailMessage $message)

Добавить вложения к сообщению.

Подробности

void __construct(Mailer $mailer, Markdown $markdown)

Создать новый экземпляр канала почты.

Параметры

Mailer $mailer
Markdown $markdown

Возвращаемое значение

void

void send(mixed $notifiable, Notification $notification)

Отправить данное уведомление.

Параметры

mixed $notifiable
Notification $notification

Возвращаемое значение

void

protected Closure messageBuilder(mixed $notifiable, Notification $notification, MailMessage $message)

Получить Closure для почтового сообщения.

Параметры

mixed $notifiable
Notification $notification
MailMessage $message

Возвращаемое значение

Closure

protected string|array buildView(MailMessage $message)

Сформировать представление уведомления.

Параметры

MailMessage $message

Возвращаемое значение

string|array

protected void buildMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)

Сформировать почтовое сообщение.

Параметры

Message $mailMessage
mixed $notifiable
Notification $notification
MailMessage $message

Возвращаемое значение

void

protected void addressMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)

Указать адресатов почтового сообщения.

Параметры

Message $mailMessage
mixed $notifiable
Notification $notification
MailMessage $message

Возвращаемое значение

void

protected void addSender(Message $mailMessage, MailMessage $message)

Добавить адреса "отправителя" и "ответного адреса" в сообщение.

Параметры

Message $mailMessage
MailMessage $message

Возвращаемое значение

void

protected mixed getRecipients(mixed $notifiable, Уведомление $notification, СообщениеЭлектроннойПочты $message)

Получить получателей данного сообщения.

Параметры

mixed $notifiable
Уведомление $notification
СообщениеЭлектроннойПочты $message

ЗначениеВозвращаемое

mixed

protected void addAttachments(Сообщение $mailMessage, СообщениеЭлектроннойПочты $message)

Добавить вложения к сообщению.

Параметры

Сообщение $mailMessage
СообщениеЭлектроннойПочты $message

ЗначениеВозвращаемое

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.6/Illuminate/Notifications/Channels/MailChannel.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API