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 |
What is laravel illuminate?
What is name of first file that loaded in laravel?
What is a check method ?
Why do we need dependency injection?
How to create a controller in laravel?
How to start mysql on valet?
What is response macros?
What do you mean by tagging used in laravel 5?
How to know laravel version?
Tell me how to enable the query logging?
What is use in laravel?
Explain how to do 301 redirects in laravel?