class Mailer implements Mailer, MailQueue (View source)
void | __construct( Factory $views, Swift_Mailer $swift, Dispatcher $events = null) Create a new Mailer instance. | |
void | alwaysFrom( string $address, string|null $name = null) Set the global from address and name. | |
void | alwaysTo( string $address, string|null $name = null) Set the global to address and name. | |
int | raw( string $text, Closure|string $callback) Send a new message when only a raw text part. | |
void | plain( string $view, array $data, mixed $callback) Send a new message when only a plain part. | |
void | send( string|array $view, array $data, Closure|string $callback) Send a new message using a view. | |
mixed | queue( string|array $view, array $data, Closure|string $callback, string $queue = null) Queue a new e-mail message for sending. | |
mixed | onQueue( string $queue, string|array $view, array $data, Closure|string $callback) Queue a new e-mail message for sending on the given queue. | |
mixed | queueOn( string $queue, string|array $view, array $data, Closure|string $callback) Queue a new e-mail message for sending on the given queue. | |
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. | |
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. | |
void | handleQueuedMessage( Job $job, array $data) Handle a queued e-mail message job. | |
Factory | getViewFactory() Get the view factory instance. | |
Swift_Mailer | getSwiftMailer() Get the Swift Mailer instance. | |
array | failures() Get the array of failed recipients. | |
void | setSwiftMailer( Swift_Mailer $swift) Set the Swift Mailer instance. | |
$this | setQueue( Queue $queue) Set the queue manager instance. | |
void | setContainer( Container $container) Set the IoC container instance. |
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 raw text part.
Send a new message when only a plain part.
Send a new message using a view.
Queue a new e-mail message for sending.
Queue a new e-mail message for sending on the given queue.
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".
Queue a new e-mail message for sending after (n) seconds.
Queue a new e-mail message for sending after (n) seconds on the given queue.
Handle a queued e-mail message job.
Get the view factory instance.
Get the Swift Mailer instance.
Get the array of failed recipients.
Set the Swift Mailer instance.
Set the queue manager instance.
Set the IoC container instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Mail/Mailer.html