class MailChannel

Methods

__construct(Factory $mailer, Markdown $markdown)

Create a new mail channel instance.

send(mixed $notifiable, Notification $notification)

Send the given notification.

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

Get the mailer Closure for the message.

array|string
buildView(MailMessage $message)

Build the notification's view.

buildMarkdownHtml(MailMessage $message)

Build the HTML view for a Markdown message.

buildMarkdownText(MailMessage $message)

Build the text view for a Markdown message.

string
markdownTheme(MailMessage $message)

Resolve the Markdown theme for the notification.

array
additionalMessageData(Notification $notification)

Get additional meta-data to pass along with the view data.

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

Build the mail message.

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

Address the mail message.

void
addSender(Message $mailMessage, MailMessage $message)

Add the "from" and "reply to" addresses to the message.

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

Get the recipients of the given message.

void
addAttachments(Message $mailMessage, MailMessage $message)

Add the attachments to the message.

runCallbacks(Message $mailMessage, MailMessage $message)

Run the callbacks for the message.

Details

at line 27
__construct(Factory $mailer, Markdown $markdown)

Create a new mail channel instance.

Parameters

Factory $mailer
Markdown $markdown

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

Send the given notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

SentMessage|null

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

Get the mailer Closure for the message.

Parameters

mixed $notifiable
Notification $notification
MailMessage $message

Return Value

Closure

at line 71
protected array|string buildView(MailMessage $message)

Build the notification's view.

Parameters

MailMessage $message

Return Value

array|string

at line 86
protected Closure buildMarkdownHtml(MailMessage $message)

Build the HTML view for a Markdown message.

Parameters

MailMessage $message

Return Value

Closure

at line 98
protected Closure buildMarkdownText(MailMessage $message)

Build the text view for a Markdown message.

Parameters

MailMessage $message

Return Value

Closure

at line 109
protected string markdownTheme(MailMessage $message)

Resolve the Markdown theme for the notification.

Parameters

MailMessage $message

Return Value

string

at line 120
protected array additionalMessageData(Notification $notification)

Get additional meta-data to pass along with the view data.

Parameters

Notification $notification

Return Value

array

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

Build the mail message.

Parameters

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

Return Value

void

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

Address the mail message.

Parameters

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

Return Value

void

at line 190
protected void addSender(Message $mailMessage, MailMessage $message)

Add the "from" and "reply to" addresses to the message.

Parameters

Message $mailMessage
MailMessage $message

Return Value

void

at line 206
protected mixed getRecipients(mixed $notifiable, Notification $notification, MailMessage $message)

Get the recipients of the given message.

Parameters

mixed $notifiable
Notification $notification
MailMessage $message

Return Value

mixed

at line 222
protected void addAttachments(Message $mailMessage, MailMessage $message)

Add the attachments to the message.

Parameters

Message $mailMessage
MailMessage $message

Return Value

void

at line 236
protected MailChannel runCallbacks(Message $mailMessage, MailMessage $message)

Run the callbacks for the message.

Parameters

Message $mailMessage
MailMessage $message

Return Value

MailChannel