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 the differce between contracts and facades?
How to share your homestead with others.
Why do we need dependency injection?
Tell me does laravel support php 7?
What is open source software?
Laravle supports which databases?
How do I assign several roles to users and permit the users to perform some actions based on those roles?
What are the example of services?
What do you mean by boot & register method used in laravel 5?
What is a flush() ?
What is meant by Authorization Mechanism in Laravel ?
How to do environment configuration in laravel.
What is current stable version of laravel?
Please explain what are the main differences between laravel 4 and laravel 5.x?
How to registering middleware in laravel?