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 csrf protection?
Explain auth.
What is difference between implicit and explicit route binding in laravel?
What are contracts?
What is isset function?
How can we get data between two dates using query in laravel?
Tell me how to implement you own package in laravel?
How can we check the logged-in user info in laravel?
How to create migrations in laravel? Explain step by steps.
Is laravel an mvc framework?
Can you update homestead? If yes, how?
What are service containers?
List some official packages provided by laravel?
What is auth? How is it used?
How to remove /public from url in laravel?