interface Mailer (View source)

Methods

to(mixed $users)

Begin the process of mailing a mailable class instance.

bcc(mixed $users)

Begin the process of mailing a mailable class instance.

raw(string $text, mixed $callback)

Send a new message with only a raw text part.

send(Mailable|string|array $view, array $data = [], Closure|string|null $callback = null)

Send a new message using a view.

sendNow(Mailable|string|array $mailable, array $data = [], Closure|string|null $callback = null)

Send a new message synchronously using a view.

Details

PendingMail to(mixed $users)

Begin the process of mailing a mailable class instance.

Parameters

mixed $users

Return Value

PendingMail

PendingMail bcc(mixed $users)

Begin the process of mailing a mailable class instance.

Parameters

mixed $users

Return Value

PendingMail

SentMessage|null raw(string $text, mixed $callback)

Send a new message with only a raw text part.

Parameters

string $text
mixed $callback

Return Value

SentMessage|null

SentMessage|null send(Mailable|string|array $view, array $data = [], Closure|string|null $callback = null)

Send a new message using a view.

Parameters

Mailable|string|array $view
array $data
Closure|string|null $callback

Return Value

SentMessage|null

SentMessage|null sendNow(Mailable|string|array $mailable, array $data = [], Closure|string|null $callback = null)

Send a new message synchronously using a view.

Parameters

Mailable|string|array $mailable
array $data
Closure|string|null $callback

Return Value

SentMessage|null