Mailer
class Mailer implements Mailer, MailQueue (View source)
Methods
Create a new Mailer instance.
Set the global from address and name.
Set the global to address and name.
Send a new message when only a plain part.
Get the view factory instance.
Get the Swift Mailer instance.
Get the array of failed recipients.
Set the Swift Mailer instance.
Details
at line line 85
void
__construct(
Factory $views,
Swift_Mailer $swift,
Dispatcher $events = null)
Create a new Mailer instance.
at line line 99
void
alwaysFrom(
string $address,
string|null $name = null)
Set the global from address and name.
at line line 111
void
alwaysTo(
string $address,
string|null $name = null)
Set the global to address and name.
at line line 123
int
raw(
string $text,
Closure|string $callback)
Send a new message when only a raw text part.
at line line 136
void
plain(
string $view,
array $data,
mixed $callback)
Send a new message when only a plain part.
at line line 149
void
send(
string|array $view,
array $data,
Closure|string $callback)
Send a new message using a view.
at line line 185
mixed
queue(
string|array $view,
array $data,
Closure|string $callback,
string $queue = null)
Queue a new e-mail message for sending.
at line line 201
mixed
onQueue(
string $queue,
string|array $view,
array $data,
Closure|string $callback)
Queue a new e-mail message for sending on the given queue.
at line line 217
mixed
queueOn(
string $queue,
string|array $view,
array $data,
Closure|string $callback)
Queue a new e-mail message for sending on the given queue.
This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
at line line 232
mixed
later(
int $delay,
string|array $view,
array $data,
Closure|string $callback,
string $queue = null)
Queue a new e-mail message for sending after (n) seconds.
at line line 249
mixed
laterOn(
string $queue,
int $delay,
string|array $view,
array $data,
Closure|string $callback)
Queue a new e-mail message for sending after (n) seconds on the given queue.