mailer('cp_'.MailPurpose::MAINTENANCE); } public function headers(): Headers { return new Headers(text: $this->notificationId ? ['X-CP-Notification' => (string) $this->notificationId] : []); } public function envelope(): Envelope { return $this->mailboxEnvelope( MailPurpose::MAINTENANCE, __('maintenance.mail_subject', ['title' => $this->window->title]), ); } public function content(): Content { return new Content(markdown: 'mail.maintenance-announcement', with: [ 'title' => $this->window->title, 'description' => $this->window->public_description, 'startsAt' => $this->window->starts_at, 'endsAt' => $this->window->ends_at, 'name' => $this->customer->name, ]); } }