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 a service supplier?
What is bagisto?
How to generate urls from named named routes?
What are the requirements for laravel 5.8?
What is database seeding in laravel?
Explain about laravel project?
How to redirect form controller to view file in laravel?
List types of the relationships supported by laravel?
What are the 3 service provider types?
What do you understand by eloquent orm?
What are bundles, reverse routing and the ioc container?
Explain the difference between laravel and codeigniter?
How to list all routes in laravel?
What is eloquent?
How to create Facade in Laravel ?