class PendingMail (View source)

Traits

Properties

protected Mailer $mailer

The mailer instance.

protected string $locale

The locale of the message.

protected array $to

The "to" recipients of the message.

protected array $cc

The "cc" recipients of the message.

protected array $bcc

The "bcc" recipients of the message.

Methods

$this|mixed
when(mixed $value, callable $callback, callable|null $default = null)

Apply the callback if the given "value" is truthy.

$this|mixed
unless(mixed $value, callable $callback, callable|null $default = null)

Apply the callback if the given "value" is falsy.

void
__construct(Mailer $mailer)

Create a new mailable mailer instance.

$this
locale(string $locale)

Set the locale of the message.

$this
to(mixed $users)

Set the recipients of the message.

$this
cc(mixed $users)

Set the recipients of the message.

$this
bcc(mixed $users)

Set the recipients of the message.

void
send(Mailable $mailable)

Send a new mailable message instance.

mixed
queue(Mailable $mailable)

Push the given mailable onto the queue.

mixed
later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)

Deliver the queued message after the given delay.

fill(Mailable $mailable)

Populate the mailable with the addresses.

Details

$this|mixed when(mixed $value, callable $callback, callable|null $default = null)

Apply the callback if the given "value" is truthy.

Parameters

mixed $value
callable $callback
callable|null $default

Return Value

$this|mixed

$this|mixed unless(mixed $value, callable $callback, callable|null $default = null)

Apply the callback if the given "value" is falsy.

Parameters

mixed $value
callable $callback
callable|null $default

Return Value

$this|mixed

void __construct(Mailer $mailer)

Create a new mailable mailer instance.

Parameters

Mailer $mailer

Return Value

void

$this locale(string $locale)

Set the locale of the message.

Parameters

string $locale

Return Value

$this

$this to(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

$this cc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

$this bcc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

void send(Mailable $mailable)

Send a new mailable message instance.

Parameters

Mailable $mailable

Return Value

void

mixed queue(Mailable $mailable)

Push the given mailable onto the queue.

Parameters

Mailable $mailable

Return Value

mixed

mixed later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)

Deliver the queued message after the given delay.

Parameters

DateTimeInterface|DateInterval|int $delay
Mailable $mailable

Return Value

mixed

protected Mailable fill(Mailable $mailable)

Populate the mailable with the addresses.

Parameters

Mailable $mailable

Return Value

Mailable