update testemail command

This commit is contained in:
Andras Bacsai 2023-09-08 17:31:02 +02:00
parent f6c3fe7888
commit b17c09f7a7

View File

@ -31,7 +31,7 @@ class TestEmail extends Command
* *
* @var string * @var string
*/ */
protected $signature = 'email:test'; protected $signature = 'email:test {to}';
/** /**
* The console command description. * The console command description.
@ -176,7 +176,7 @@ class TestEmail extends Command
'internal@example.com', 'internal@example.com',
'Test Email', 'Test Email',
) )
->to('test@example.com') ->to($this->argument('to') ?? 'test@example.com')
->subject($this->mail->subject) ->subject($this->mail->subject)
->html((string)$this->mail->render()) ->html((string)$this->mail->render())
); );