On this page
PendingMail
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|TWhenReturnType | when($value = null, callable $callback = null, callable $default = null) Apply the callback if the given "value" is (or resolves to) truthy. |
from Conditionable |
$this|TUnlessReturnType | unless($value = null, callable $callback = null, callable $default = null) Apply the callback if the given "value" is (or resolves to) falsy. |
from Conditionable |
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. |
|
SentMessage|null | 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 (n) seconds. |
|
Mailable | fill(Mailable $mailable) Populate the mailable with the addresses. |
Details
$this|TWhenReturnType when($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) truthy.
$this|TUnlessReturnType unless($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) 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.
SentMessage|null 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 (n) seconds.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Mail/PendingMail.html