Skip to content

Commit

Permalink
Fix test alive task for Sympony mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatacconi committed Apr 28, 2022
1 parent 46d743f commit c07a12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/testAliveTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
->text($message)
;

foreach ($crunz_config["mailer"]["recipients"] ?? [] as $idx=>$recipient) {
$messageObject->addTo(new Address($idx, $recipient));
foreach ($crunz_config["mailer"]["recipients"] ?? [] as $recipient_name => $recipient_mail) {
$messageObject->addTo(new Address($recipient_mail, $recipient_name));
}

$mailer->send($messageObject);
Expand Down

0 comments on commit c07a12c

Please sign in to comment.