What is the use of Laravel - Sending Email ?
Answer / surbhi
Laravel uses free feature-rich library SwiftMailer to send emails.
Using the library function, we can easily send emails without too many hassles.
The e-mail templates are loaded in the same way as views, which means you can use the Blade syntax and inject data into your templates.
Syntax : void send(string|array $view, array $data, Closure|string $callback)
The default type is HTML. If you want to send plain text mail then use the following syntax.
Syntax : Mail::send([‘text’=>’text.view’], $data, $callback);
| Is This Answer Correct ? | 0 Yes | 0 No |
Is it easy to learn laravel?
How to Declaration of namespace ?
Explain extending bindings?
What is attribute casting and how does it work in eloquent?
How to Deleting Session Data in Laravel ?
How to do dependency injection in laravel controllers?
What is named route?
How can you write your own service provider in laravel.
What are the difference between latest() and oldest() in laravel?
What is query scope?
How to use stored procedures in laravel?
How to serve sites on valet?