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) Получить замыкание для почтового сообщения. | |
| string|array | buildView(MailMessage $message) Сформировать представление уведомления. | |
| array | additionalMessageData(Notification $notification) Получить дополнительную метаданные для передачи вместе с данными представления. | |
| 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) Добавить вложение к сообщению. | |
| $this | runCallbacks(Message $mailMessage, MailMessage $message) Выполнить обратные вызовы для сообщения. |
Подробности
void __construct(Mailer $mailer, Markdown $markdown)
Создать новый экземпляр канала почтовой рассылки.
void send(mixed $notifiable, Notification $notification)
Отправить уведомление.
protected Closure messageBuilder(mixed $notifiable, Notification $notification, MailMessage $message)
Получить замыкание для почтового сообщения.
protected string|array buildView(MailMessage $message)
Сформировать представление уведомления.
protected array additionalMessageData(Notification $notification)
Получить дополнительную метаданные для передачи вместе с данными представления.
protected void buildMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)
Сформировать почтовое сообщение.
protected void addressMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message)
Указать адресата письма.
protected void addSender(Message $mailMessage, MailMessage $message)
Добавить адреса "от" и "ответ на" в сообщение.
protected mixed getRecipients(mixed $notifiable, Notification $notification, MailMessage $message)
Получить получателей данного сообщения.
protected void addAttachments(Message $mailMessage, MailMessage $message)
Добавить вложение к сообщению.
protected $this runCallbacks(Message $mailMessage, MailMessage $message)
Выполнить коллбеки для сообщения.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Notifications/Channels/MailChannel.html