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
Please write some additional where clauses in laravel?
How to make a helper file in laravel?
What is a Middleware Parameters ?
What are the applications supported by valet?
What do you know about csrf token in laravel?
What is a service supplier?
Explain how to get requested path in laravel?
What are the major differences between laravel 4 and laravel 5.x?
Explain the concept of events in laravel.
What is view laravel?
How will you explain homestead in laravel?
How to change your default database type in laravel?
Does laravel support caching?
Difference between facades vs. Dependency injection?
What are route parameters?