Skip to content

Commit

Permalink
[BUGFIX] empty subject must not create error flash message
Browse files Browse the repository at this point in the history
  • Loading branch information
franzkugelmann authored and mschwemer committed Sep 25, 2024
1 parent bff8753 commit ade965d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Domain/Service/Mail/SendReceiverMailPreflight.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public function sendReceiverMail(Mail $mail, string $hash = null): bool
$this->settings
);
$isSent = false;
if (empty($this->settings['receiver']['subject'])) {
// avoid error flashmessage if subject is deliberately empty (and thus deactivates mailing)
return true;
}
foreach ($receiverService->getReceiverEmails() as $receiver) {
$email = [
'template' => 'Mail/ReceiverMail',
Expand Down

0 comments on commit ade965d

Please sign in to comment.