class MailChannel

Properties

protected Mailer $mailer

The mailer implementation.

protected Closure $markdownResolver

The Markdown resolver callback.

Methods

void
__construct(Mailer $mailer)

Create a new mail channel instance.

void
send(mixed $notifiable, Notification $notification)

Send the given notification.

void
buildView(MailMessage $message)

Build the notification's view.

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

Build the mail message.

void
addressMessage(Message $mailMessage, mixed $notifiable, 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, MailMessage $message)

Get the recipients of the given message.

void
addAttachments(Message $mailMessage, MailMessage $message)

Add the attachments to the message.

$this
setMarkdownResolver(Closure $callback)

Set the Markdown resolver callback.

Details

at line 34
void __construct(Mailer $mailer)

Create a new mail channel instance.

Parameters

Mailer $mailer

Return Value

void

at line 46
void send(mixed $notifiable, Notification $notification)

Send the given notification.

Parameters

mixed $notifiable
Notification $notification

Return Value

void

at line 69
protected void buildView(MailMessage $message)

Build the notification's view.

Parameters

MailMessage $message

Return Value

void

at line 92
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 115
protected void addressMessage(Message $mailMessage, mixed $notifiable, MailMessage $message)

Address the mail message.

Parameters

Message $mailMessage
mixed $notifiable
MailMessage $message

Return Value

void

at line 137
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 155
protected mixed getRecipients(mixed $notifiable, MailMessage $message)

Get the recipients of the given message.

Parameters

mixed $notifiable
MailMessage $message

Return Value

mixed

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

Add the attachments to the message.

Parameters

Message $mailMessage
MailMessage $message

Return Value

void

at line 190
$this setMarkdownResolver(Closure $callback)

Set the Markdown resolver callback.

Parameters

Closure $callback

Return Value

$this