What is the use of Laravel - Sending Email ?
Answer / 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 |
How to pass csrf token with ajax request?
What is an observer in laravel?
Explain laravel contracts?
Explain how to share your homestead with others?
What are the example of services?
How to registering middleware in laravel?
How can I hide all stack whoops error information when the application is in production?
What is Named Routes.
Explain how to register a middleware in laravel?
What is closure in laravel?
How do you call artisan command in laravel?
What is open source software?