email) { return; } $view = 'invoice'; //$data = array('link' => URL::to('view') . '/' . $invoice->invoice_key); $data = ['link' => '']; $subject = 'Notification - Invoice ' . $type; $this->sendTo($user->email, CONTACT_EMAIL, $subject, $view, $data); } }