diff --git a/src/Console/Commands/MailTestCommand.php b/src/Console/Commands/MailTestCommand.php index f11502e..ee553ef 100644 --- a/src/Console/Commands/MailTestCommand.php +++ b/src/Console/Commands/MailTestCommand.php @@ -59,13 +59,13 @@ public function handle() $this->components->info("Sending a test email to {$recipient}..."); - $result = wp_mail( + $mail = wp_mail( $recipient, 'Test Email', 'This is a test email from WordPress.' ); - if ($result) { + if ($mail) { $this->components->info('The test email was sent successfully.'); return;