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 are the benefits of laravel?
What is laravel eloquent?
What is facades in laravel?
How to set database connection in laravel?
What is laravel dusk?
Which js framework is best with laravel?
What is your favorite feature of laravel?
What is a check method ?
Explain the events in laravel?
How to create model controller and migration in a single artisan command in laravel?
How to launch vagrant box?
How do I use sub-domain routing?
Tell me how to install laravel?
What are cookies? How to get, set, distroy cookies in laravel?
How many types of middleware are there in laravel?