class Illuminate / Mail / PendingMail
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

PendingMail

Uses

Properties

protected

$mailer Mailer

The mailer instance.

Default: null
protected

$locale string

The locale of the message.

Default: null
protected

$to array

The "to" recipients of the message.

Default: []
protected

$cc array

The "cc" recipients of the message.

Default: []
protected

$bcc array

The "bcc" recipients of the message.

Default: []

Methods

public

__construct ( Mailer $mailer ) : void

Create a new mailable mailer instance.

Parameters

public

locale ( $locale ) : $this

Set the locale of the message.

Parameters

  • $locale string
public

to ( $users ) : $this

Set the recipients of the message.

Parameters

  • $users mixed
public

cc ( $users ) : $this

Set the recipients of the message.

Parameters

  • $users mixed
public

bcc ( $users ) : $this

Set the recipients of the message.

Parameters

  • $users mixed
public

send ( Mailable $mailable ) : SentMessage |null

Send a new mailable message instance.

Parameters

public

queue ( Mailable $mailable ) : mixed

Push the given mailable onto the queue.

Parameters

public

later ( $delay , Mailable $mailable ) : mixed

Deliver the queued message after (n) seconds.

Parameters

protected

fill ( Mailable $mailable ) : Mailable

Populate the mailable with the addresses.

Parameters