If you want to sent mail using Mail::send() function in Laravel 5 version so, you need to define Use Mail below the namespace. such as:
<?php namespace AppHttpControllers; use Mail;
Then you try on this code:
<?php Mail::send( ['html'=>'mail_temp.mail'], $data, function( $message ) use ($data) { $message->to( $data['email'] )->from( $data['from'], $data['user_name'] ) ->subject( 'Welcome!' ); });
Question and answer is powered by AnsPress.io