public static function sendEmail($data)
    {
        $data = self::setTemplate($data);

        if(isset($data['html']) && isset($data['text']))
        {
            Mail::send(['pulsar::common.views.html_display', 'pulsar::common.views.text_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }
        elseif(isset($data['html']))
        {
            Mail::send(['html' =>'pulsar::common.views.html_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }
        elseif(isset($data['text']))
        {
            Mail::send(['text' =>'pulsar::common.views.text_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }

        return false;
    }
public static function sendEmail($data)
    {
        $data = self::setTemplate($data);

        if(isset($data['html']) && isset($data['text']))
        {
            Mail::send(['pulsar::common.views.html_display', 'pulsar::common.views.text_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }
        elseif(isset($data['html']))
        {
            Mail::send(['html' =>'pulsar::common.views.html_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }
        elseif(isset($data['text']))
        {
            Mail::send(['text' =>'pulsar::common.views.text_display'], $data, function ($message) use ($data) {
                $message->to($data['email'], $data['name'])->subject($data['subject']);
                if(isset($data['replyTo'])) $message->replyTo($data['replyTo']);
            });
            return true;
        }

        return false;
    }
public static function sendEmail ( $ data ) { $ data = self :: setTemplate ( $ data ) ; if ( isset ( $ data [ 'html' ] ) && isset ( $ data [ 'text' ] ) ) { Mail :: send ( [ 'pulsar::common.views.html_display' , 'pulsar::common.views.text_display' ] , $ data , function ( $ message ) use ( $ data ) { $ message -> to ( $ data [ 'email' ] , $ data [ 'name' ] ) -> subject ( $ data [ 'subject' ] ) ; if ( isset ( $ data [ 'replyTo' ] ) ) $ message -> replyTo ( $ data [ 'replyTo' ] ) ; } ) ; return true ; } elseif ( isset ( $ data [ 'html' ] ) ) { Mail :: send ( [ 'html' => 'pulsar::common.views.html_display' ] , $ data , function ( $ message ) use ( $ data ) { $ message -> to ( $ data [ 'email' ] , $ data [ 'name' ] ) -> subject ( $ data [ 'subject' ] ) ; if ( isset ( $ data [ 'replyTo' ] ) ) $ message -> replyTo ( $ data [ 'replyTo' ] ) ; } ) ; return true ; } elseif ( isset ( $ data [ 'text' ] ) ) { Mail :: send ( [ 'text' => 'pulsar::common.views.text_display' ] , $ data , function ( $ message ) use ( $ data ) { $ message -> to ( $ data [ 'email' ] , $ data [ 'name' ] ) -> subject ( $ data [ 'subject' ] ) ; if ( isset ( $ data [ 'replyTo' ] ) ) $ message -> replyTo ( $ data [ 'replyTo' ] ) ; } ) ; return true ; } return false ; }
Function that send a email

@access	public
@param   array   $data
@return  boolean
Function that send a email