public function sendEmailNotificationToSender($message, $mappedVars) {

        // Prep the email
        $data = $this->prepareNotificationEmailData($message, $mappedVars);

        // What blade file to use?
        $emailBladeFile = 'lasallecmsemail::email.notification_email_to_inbound_sender';

        // Send da email
        Mail::queue($emailBladeFile, ['data' => $data], function ($message) use ($data) {

            $message->from($data['from_email_address'], $data['from_name']);
            $message->to($data['to_email_address'] , $data['to_email_address']);
            $message->subject($data['subject']);
        });
    }
public function sendEmailNotificationToSender($message, $mappedVars) {

        // Prep the email
        $data = $this->prepareNotificationEmailData($message, $mappedVars);

        // What blade file to use?
        $emailBladeFile = 'lasallecmsemail::email.notification_email_to_inbound_sender';

        // Send da email
        Mail::queue($emailBladeFile, ['data' => $data], function ($message) use ($data) {

            $message->from($data['from_email_address'], $data['from_name']);
            $message->to($data['to_email_address'] , $data['to_email_address']);
            $message->subject($data['subject']);
        });
    }
public function sendEmailNotificationToSender ( $ message , $ mappedVars ) { // Prep the email $ data = $ this -> prepareNotificationEmailData ( $ message , $ mappedVars ) ; // What blade file to use? $ emailBladeFile = 'lasallecmsemail::email.notification_email_to_inbound_sender' ; // Send da email Mail :: queue ( $ emailBladeFile , [ 'data' => $ data ] , function ( $ message ) use ( $ data ) { $ message -> from ( $ data [ 'from_email_address' ] , $ data [ 'from_name' ] ) ; $ message -> to ( $ data [ 'to_email_address' ] , $ data [ 'to_email_address' ] ) ; $ message -> subject ( $ data [ 'subject' ] ) ; } ) ; }
Send an email notification to sender

@param  string  $message              Message to put in the body of the email
@param  array   $mappedVars           Inbound POST vars mapped to database fields
@return void
Send an email notification to sender