Spec-Zone.ru › Laravel 11

MailChannel

class MailChannel (View source)

Свойства

protected Factory $mailer

Реализация почтового сервера.

protected Markdown $markdown

Реализация Markdown.

Методы

void __construct(Factory $mailer, Markdown $markdown)

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

SentMessage|null send(mixed $notifiable, Notification $notification)

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

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

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

string|array buildView(MailMessage $message)

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

Closure buildMarkdownHtml(MailMessage $message)

Сгенерировать HTML представление для сообщения Markdown.

Closure buildMarkdownText(MailMessage $message)

Сгенерировать текстовое представление для сообщения Markdown.

Markdown markdownRenderer(MailMessage $message)

Получить реализацию Markdown.

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(Factory $mailer, Markdown $markdown)

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

Параметры

Factory $mailer
Markdown $markdown

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

void

SentMessage|null send(mixed $notifiable, Notification $notification)

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

Параметры

mixed $notifiable
Notification $notification

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

SentMessage|null

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

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

Параметры

mixed $notifiable
Notification $notification
MailMessage $message

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

Closure

protected string|array buildView(MailMessage $message)

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

Параметры

MailMessage $message

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

string|array

protected Closure buildMarkdownHtml(MailMessage $message)

Сгенерировать HTML представление для сообщения Markdown.

Параметры

MailMessage $message

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

Closure

protected Closure buildMarkdownText(MailMessage $message)

Создать текстовый вид для сообщения Markdown.

Параметры

MailMessage $message

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

Closure

protected Markdown markdownRenderer(MailMessage $message)

Получить реализацию Markdown.

Параметры

MailMessage $message

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

Markdown

protected array additionalMessageData(Notification $notification)

Получить дополнительные метаданные для передачи вместе с данными представления.

Параметры

Notification $notification

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

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 $notification, MailMessage $message)

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

Параметры

mixed $notifiable
Notification $notification
MailMessage $message

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

mixed

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

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

Параметры

Message $mailMessage
MailMessage $message

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

void

protected $this runCallbacks(Message $mailMessage, MailMessage $message)

Выполнить обратные вызовы для сообщения.

Параметры

Message $mailMessage
MailMessage $message

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

$this

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

Spec-Zone.ru

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