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 |
Explain what is valet?
List available types of relationships in laravel eloquent.
what is meant by Views ?
How auth is used?
What is database migration used in laravel 5? Explain
What is the default session timeout duration and how can it be set?
What is php artisan.
How to write html code in laravel controller?
How to enable or disable maintenance mode in laravel?
What is vagrantfile?
Describe laravel service provider?
What is x-csrf-token?