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
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
- $notifiable mixed
- $notification Notification
protected
messageBuilder ( $notifiable , $notification , $message ) : Closure
Get the mailer Closure for the message.
Parameters
- $notifiable mixed
- $notification Notification
- $message MailMessage
protected
buildView ( $message ) : string|array
Build the notification's view.
Parameters
- $message MailMessage
protected
buildMarkdownHtml ( $message ) : Closure
Build the HTML view for a Markdown message.
Parameters
- $message MailMessage
protected
buildMarkdownText ( $message ) : Closure
Build the text view for a Markdown message.
Parameters
- $message MailMessage
protected
markdownRenderer ( $message ) : Markdown
Get the Markdown implementation.
Parameters
- $message MailMessage
protected
additionalMessageData ( $notification ) : array
Get additional meta-data to pass along with the view data.
Parameters
- $notification Notification
protected
buildMessage ( $mailMessage , $notifiable , $notification , $message ) : void
Build the mail message.
Parameters
- $mailMessage Message
- $notifiable mixed
- $notification Notification
- $message MailMessage
protected
addressMessage ( $mailMessage , $notifiable , $notification , $message ) : void
Address the mail message.
Parameters
- $mailMessage Message
- $notifiable mixed
- $notification Notification
- $message MailMessage
protected
addSender ( $mailMessage , $message ) : void
Add the "from" and "reply to" addresses to the message.
Parameters
- $mailMessage Message
- $message MailMessage
protected
getRecipients ( $notifiable , $notification , $message ) : mixed
Get the recipients of the given message.
Parameters
- $notifiable mixed
- $notification Notification
- $message MailMessage
protected
addAttachments ( $mailMessage , $message ) : void
Add the attachments to the message.
Parameters
- $mailMessage Message
- $message MailMessage
protected
runCallbacks ( $mailMessage , $message ) : $this
Run the callbacks for the message.
Parameters
- $mailMessage Message
- $message MailMessage