PendingMailFake

class PendingMailFake extends PendingMail (View source)

Properties

protected Mailer $mailer The mailer instance. from PendingMail
protected array $locale The locale of the message. from PendingMail
protected array $to The "to" recipients of the message. from PendingMail
protected array $cc The "cc" recipients of the message. from PendingMail
protected array $bcc The "bcc" recipients of the message. from PendingMail

Methods

void __construct(Mailer $mailer)

Create a new instance.

$this locale(string $locale)

Set the locale of the message.

from PendingMail
$this to(mixed $users)

Set the recipients of the message.

from PendingMail
$this cc(mixed $users)

Set the recipients of the message.

from PendingMail
$this bcc(mixed $users)

Set the recipients of the message.

from PendingMail
mixed send(Mailable $mailable)

Send a new mailable message instance.

mixed sendNow(Mailable $mailable)

Send a mailable message immediately.

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.

from PendingMail
Mailable fill(Mailable $mailable)

Populate the mailable with the addresses.

from PendingMail

Details

void __construct(Mailer $mailer)

Create a new 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

mixed send(Mailable $mailable)

Send a new mailable message instance.

Parameters

Mailable $mailable

Return Value

mixed

mixed sendNow(Mailable $mailable)

Send a mailable message immediately.

Parameters

Mailable $mailable

Return Value

mixed

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Support/Testing/Fakes/PendingMailFake.html