Answer Posted / 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 |
Post New Answer View All Answers
What is laravel api?
State the difference between get and post method.
what is meant by CSRF Protection in Laravel ?
Define contextual binding?
What is Laravel - File Uploading ?
What is seed in laravel?
How do I make a middleware to be run during every http request to an application?
what is meant by Laravel ?
Tell me why laravel over other php frameworks?
How to set configuration values in laravel?
Tell me does laravel support php 7?
How to send mail using queue in laravel 5?
Tell us how to use update statement in laravel?
What the server requirements for laravel?
How to create view Laravel - File Uploading ?