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
Does laravel support caching?
How to rollback last migration?
What is the default session timeout duration and how can it be set?
Explain contextual binding and how does it work?
What is trait in laravel?
What is database migration? And how to use it to add insert initial data to database?
How to Connecting to Database in Laravel ?
How to install homestead vagrant box?
How to get JSON Response on Laravel ?
How to use the custom table in laravel model?
Is laravel any good?
Explain what is laravel
What is x-xsrf-token?
What do you mean by view composers?
What are the operations perfom while Connecting the Database ?