Skip to content

Commit

Permalink
🎨 Improve the mail variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 4, 2024
1 parent f78ac6c commit de1f1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/MailTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ public function handle()

$this->components->info("Sending a test email to <fg=blue>{$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;
Expand Down

0 comments on commit de1f1f8

Please sign in to comment.