mail = $mail; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: $this->mail['subject'], ); } /** * Get the message content definition. */ public function content(): Content { $appName = config('app.name'); $body = <<Hi,

{$this->mail['body']} This is an automated message send from {$appName} HTML; return new Content( html: 'components.mail.system', with: ['body' => $body], ); } }