MailChannel
in package
Table of Contents
- $mailer : Mailer
- The mailer implementation.
- $markdown : Markdown
- The markdown implementation.
- __construct() : void
- Create a new mail channel instance.
- send() : void
- Send the given notification.
- addAttachments() : void
- Add the attachments to the message.
- addressMessage() : void
- Address the mail message.
- addSender() : void
- Add the "from" and "reply to" addresses to the message.
- buildMessage() : void
- Build the mail message.
- buildView() : string|array<string|int, mixed>
- Build the notification's view.
- getRecipients() : mixed
- Get the recipients of the given message.
- messageBuilder() : Closure
- Get the mailer Closure for the message.
Properties
$mailer
The mailer implementation.
protected
Mailer
$mailer
$markdown
The markdown implementation.
protected
Markdown
$markdown
Methods
__construct()
Create a new mail channel instance.
public
__construct(Mailer $mailer, Markdown $markdown) : void
Parameters
Return values
void —send()
Send the given notification.
public
send(mixed $notifiable, Notification $notification) : void
Parameters
- $notifiable : mixed
- $notification : Notification
Return values
void —addAttachments()
Add the attachments to the message.
protected
addAttachments(Message $mailMessage, MailMessage $message) : void
Parameters
- $mailMessage : Message
- $message : MailMessage
Return values
void —addressMessage()
Address the mail message.
protected
addressMessage(Message $mailMessage, mixed $notifiable, MailMessage $message) : void
Parameters
- $mailMessage : Message
- $notifiable : mixed
- $message : MailMessage
Return values
void —addSender()
Add the "from" and "reply to" addresses to the message.
protected
addSender(Message $mailMessage, MailMessage $message) : void
Parameters
- $mailMessage : Message
- $message : MailMessage
Return values
void —buildMessage()
Build the mail message.
protected
buildMessage(Message $mailMessage, mixed $notifiable, Notification $notification, MailMessage $message) : void
Parameters
- $mailMessage : Message
- $notifiable : mixed
- $notification : Notification
- $message : MailMessage
Return values
void —buildView()
Build the notification's view.
protected
buildView(MailMessage $message) : string|array<string|int, mixed>
Parameters
- $message : MailMessage
Return values
string|array<string|int, mixed> —getRecipients()
Get the recipients of the given message.
protected
getRecipients(mixed $notifiable, MailMessage $message) : mixed
Parameters
- $notifiable : mixed
- $message : MailMessage
Return values
mixed —messageBuilder()
Get the mailer Closure for the message.
protected
messageBuilder(mixed $notifiable, Notification $notification, MailMessage $message) : Closure
Parameters
- $notifiable : mixed
- $notification : Notification
- $message : MailMessage