class Illuminate / Notifications / Channels / MailChannel
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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 ) : void

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

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