Skip to content

Commit ae7de8b

Browse files
authored
Merge pull request #6 from Kickbyte/multiple-recipients
multiple mail recipients
2 parents 873a5f4 + 4b7546e commit ae7de8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Subscriber/Backend/QueryManagerCron.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function runQueryManagerCron()
114114
if(!empty($mailRecipient)){
115115
$mail = clone $this->container->get('mail');
116116
$mail->setFrom($this->container->get('config')->get('mail'));
117-
$mail->addTo($mailRecipient);
117+
$mail->addTo(array_map('trim', explode(",", $mailRecipient)));
118118
$mail->setSubject($cronJob['name']);
119119
$mail->setBodyText($rowCount . ' ' . $snippets->get('rowsAffected', 'Reihen betroffen'));
120120
$mail->createAttachment(
@@ -173,4 +173,4 @@ public function runQueryManagerCron()
173173

174174
return $data;
175175
}
176-
}
176+
}

0 commit comments

Comments
 (0)