userName = $userName; $this->userEmail = $userEmail; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( from: new Address('no-reply@cnxifly.com', 'WEBMoney - ConneXiFly'), replyTo: [ new Address('support@cnxifly.com', 'Soporte WEBMoney'), ], subject: '¡Bienvenido a WEBMoney! Tu cuenta ha sido creada', tags: ['welcome', 'new-user'], metadata: [ 'user_email' => $this->userEmail, ], ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.welcome', text: 'emails.welcome-text', with: [ 'userName' => $this->userName, 'userEmail' => $this->userEmail, ], ); } /** * Extra headers to help deliverability. */ public function headers(): Headers { return new Headers( text: [ 'List-Unsubscribe' => '', 'List-Unsubscribe-Post' => 'List-Unsubscribe=One-Click', ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }