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

How can we handle Error Handling in Laravel ?

1 Answers  


What is laravel api?

0 Answers  


What are the validations in laravel?

0 Answers  


Is laravel a cms?

0 Answers  


What are system requirement for laravel 5.0?

0 Answers  






What does valet park?

0 Answers  


Is laravel secure?

0 Answers  


What are the available router methods?

0 Answers  


What is url helper?

0 Answers  


How to create Controller Laravel - File Uploading ?

1 Answers  


How can someone change the default database type in laravel?

0 Answers  


How to check an input value is present or not in laravel?

0 Answers  


Categories