Skip to content

Commit

Permalink
[BUGFIX] Fix receiver mail validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rengaw83 authored and mschwemer committed Oct 2, 2024
1 parent fcc7074 commit b3e1e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Service/Mail/SendMailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function sendMail(array $email, Mail $mail, array $settings, string $type
$logger = ObjectUtility::getLogger(__CLASS__);
$logger->info('Mail properties', [$email]);
}
if (GeneralUtility::validEmail($email['receiverEmail'] === false) ||
if (GeneralUtility::validEmail($email['receiverEmail']) === false ||
GeneralUtility::validEmail($email['senderEmail']) === false) {
return false;
}
Expand Down

0 comments on commit b3e1e18

Please sign in to comment.