note = $note; } /** * Execute the job. * * @return void */ public function handle(Mailer $mailer) { $note = $this->note; $emails = ['samuel@click-mobile.com', 'kwesi@click-mobile.com', 'mansa@click-mobile.com']; //$note_body = $note->notes_body; $data = [ 'client' => $note->client_info->name, 'created_by' => $note->created_by_info->name, 'services' => $note->services, 'notes_body' => $note->notes_body ]; \Log::info("New notes for : " . $note->client_info->name); \Log::info("New notes triggered by : " . $note->created_by_info->name); \Log::info($note->notes_body); $mailer->send('emails.new-notes', $data, function ($message) use ($data, $emails) { $message->from('alerts@click-mobile.com', 'Click Mobile ERP'); $message->to($emails)->subject('New Notes'); }); } }