send() public method

Send a new message using a view.
public send ( string | array $view, array $data = [], Closure | string $callback = null ) : void
$view string | array
$data array
$callback Closure | string
return void
 /**
  * send mail
  */
 public function send()
 {
     $from = $this->fromEmail;
     $to = $this->toEmail;
     $name = $this->toName;
     $subject = $this->subject;
     $this->beauty->send($this->view, $this->datas, function ($message) use($from, $to, $name, $subject) {
         $message->from($from)->to($to, $name)->subject($subject);
     });
 }