How to send email using Laravel

Use Mail facade to send mail via send method. The send method contain three parameters. First parameter is your view blade file where you write your messages, second parameter is for passing array data to view and last one is closure callback that receives a message instance through which you can customize the subjects, recipients and other features of mail messages.


$inputs = Request::all();

$user_data = [

Mail::send('emails.becomeDrOrDrAsst', array("user" => $user_data), function ($message) use ($user_data) 
    $message->from('', 'example');
    $message->to('')->subject('Register Success');

Leave a Reply

Your email address will not be published. Required fields are marked *