email . '&confirmation_code=' . $this->uuid; $cancel_url = base_url() . '/webhooks/waitlist/cancel?email=' . $this->email . '&confirmation_code=' . $this->uuid; $mail->view('emails.waitlist-confirmation', [ 'confirmation_url' => $confirmation_url, 'cancel_url' => $cancel_url, ]); $mail->subject('You are on the waitlist!'); Mail::send( [], [], fn(Message $message) => $message ->from( data_get($settings, 'smtp_from_address'), data_get($settings, 'smtp_from_name') ) ->to($this->email) ->subject($mail->subject) ->html((string) $mail->render()) ); } catch (\Throwable $th) { send_internal_notification('SendConfirmationForWaitlistJob failed with error: ' . $th->getMessage()); ray($th->getMessage()); throw $th; } } }