class Illuminate / Notifications / Channels / MailChannel
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

MailChannel

Properties

protected

$mailer Factory

The mailer implementation.

Default: null
protected

$markdown Markdown

The markdown implementation.

Default: null

Methods

public

__construct ( Factory $mailer , Markdown $markdown ) : void

Create a new mail channel instance.

Parameters

public

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

Send the given notification.

Parameters

protected

messageBuilder ( $notifiable , $notification , $message ) : Closure

Get the mailer Closure for the message.

Parameters

protected

buildView ( $message ) : string|array

Build the notification's view.

Parameters

protected

buildMarkdownHtml ( $message ) : Closure

Build the HTML view for a Markdown message.

Parameters

protected

buildMarkdownText ( $message ) : Closure

Build the text view for a Markdown message.

Parameters

protected

markdownRenderer ( $message ) : Markdown

Get the Markdown implementation.

Parameters

protected

additionalMessageData ( $notification ) : array

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

Parameters

protected

buildMessage ( $mailMessage , $notifiable , $notification , $message ) : void

Build the mail message.

Parameters

protected

addressMessage ( $mailMessage , $notifiable , $notification , $message ) : void

Address the mail message.

Parameters

protected

addSender ( $mailMessage , $message ) : void

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

Parameters

protected

getRecipients ( $notifiable , $notification , $message ) : mixed

Get the recipients of the given message.

Parameters

protected

addAttachments ( $mailMessage , $message ) : void

Add the attachments to the message.

Parameters

protected

runCallbacks ( $mailMessage , $message ) : $this

Run the callbacks for the message.

Parameters