What is the use of Laravel - Sending Email ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

What are the Advantages of Laravel ?

0 Answers  


What do you know about laravel contracts?

0 Answers  


How to install and start, stop mysql on valet?

0 Answers  


What is database migration. How to create migration via artisan?

0 Answers  


How to implement you own package in laravel?

0 Answers  


What are laravel facades?

0 Answers  


How can we check the logged-in user info in laravel?

0 Answers  


How to return a view from route in laravel?

0 Answers  


Do you know what is php artisan. List out some artisan commands?

0 Answers  


What is blueprint in laravel?

0 Answers  


Please provide steps to configure homestead?

0 Answers  


Tell me what is current stable version of laravel?

0 Answers  


Categories