diff --git a/app/Services/Email/EmailMailable.php b/app/Services/Email/EmailMailable.php index 2599d7d30161..ada43bab730d 100644 --- a/app/Services/Email/EmailMailable.php +++ b/app/Services/Email/EmailMailable.php @@ -77,6 +77,9 @@ class EmailMailable extends Mailable 'company' => $this->email_object->company, 'greeting' => '', 'links' => array_merge($this->email_object->links, $links->toArray()), + 'email_preferences' => $this->email_object->invitation + ? URL::signedRoute('client.email_preferences', ['entity' => $this->email_object->invitation->getEntityString(), 'invitation_key' => $this->email_object->invitation->key]) + : false, ] ); }