Mailer

Mailer class Mailer implements Mailer, MailQueue (View source) Methods void __construct(Factory $views, Swift_Mailer $swift, Dispatcher $events = null) Create a new Mailer instance. void alwaysFrom(string $address, string|null $name = null) Set the global from address and name. void alwaysTo(string $address, string|null $name = null) Set the global to address and name. MailableMailer to(mixed $users) Begin the process of mailing a mailable class instance. MailableMailer

Mailer

Mailer interface Mailer (View source) Methods int raw(string $text, Closure|string $callback) Send a new message when only a raw text part. void send(string|array $view, array $data = array(), Closure|string $callback = null) Send a new message using a view. array failures() Get the array of failed recipients.

MailChannel::__construct()

void __construct(Mailer $mailer) Create a new mail channel instance. Parameters Mailer $mailer Return Value void

MailChannel::send()

void send(mixed $notifiable, Notification $notification) Send the given notification. Parameters mixed $notifiable Notification $notification Return Value void

MailChannel

MailChannel class MailChannel (View source) Methods void __construct(Mailer $mailer) Create a new mail channel instance. void send(mixed $notifiable, Notification $notification) Send the given notification.

MailableMailer::__construct()

void __construct(Mailer $mailer) Create a new mailable mailer instance. Parameters Mailer $mailer Return Value void

MailableMailer::to()

$this to(mixed $users) Set the recipients of the message. Parameters mixed $users Return Value $this

MailableMailer::sendNow()

mixed sendNow(Mailable $mailable) Send a mailable message immediately. Parameters Mailable $mailable Return Value mixed

MailableMailer::send()

mixed send(Mailable $mailable) Send a new mailable message instance. Parameters Mailable $mailable Return Value mixed

MailableMailer::queue()

mixed queue(Mailable $mailable) Push the given mailable onto the queue. Parameters Mailable $mailable Return Value mixed