interface Mailable (View source)

Methods

void
send(Factory|Mailer $mailer)

Send the message using the given mailer.

mixed
queue(Factory $queue)

Queue the given message.

mixed
later(DateTimeInterface|DateInterval|int $delay, Factory $queue)

Deliver the queued message after (n) seconds.

cc(object|array|string $address, string|null $name = null)

Set the recipients of the message.

$this
bcc(object|array|string $address, string|null $name = null)

Set the recipients of the message.

$this
to(object|array|string $address, string|null $name = null)

Set the recipients of the message.

$this
locale(string $locale)

Set the locale of the message.

$this
mailer(string $mailer)

Set the name of the mailer that should be used to send the message.

Details

void send(Factory|Mailer $mailer)

Send the message using the given mailer.

Parameters

Factory|Mailer $mailer

Return Value

void

mixed queue(Factory $queue)

Queue the given message.

Parameters

Factory $queue

Return Value

mixed

mixed later(DateTimeInterface|DateInterval|int $delay, Factory $queue)

Deliver the queued message after (n) seconds.

Parameters

DateTimeInterface|DateInterval|int $delay
Factory $queue

Return Value

mixed

Mailable cc(object|array|string $address, string|null $name = null)

Set the recipients of the message.

Parameters

object|array|string $address
string|null $name

Return Value

Mailable

$this bcc(object|array|string $address, string|null $name = null)

Set the recipients of the message.

Parameters

object|array|string $address
string|null $name

Return Value

$this

$this to(object|array|string $address, string|null $name = null)

Set the recipients of the message.

Parameters

object|array|string $address
string|null $name

Return Value

$this

$this locale(string $locale)

Set the locale of the message.

Parameters

string $locale

Return Value

$this

$this mailer(string $mailer)

Set the name of the mailer that should be used to send the message.

Parameters

string $mailer

Return Value

$this