Skip to content

Commit

Permalink
SendMail: Support whitespace and comma separated recipients
Browse files Browse the repository at this point in the history
fixes #111
  • Loading branch information
nilmerg committed Mar 18, 2022
1 parent 980f137 commit 2b5adc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Reporting/Actions/SendMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function execute(Report $report, array $config)
throw new \InvalidArgumentException();
}

$recipients = StringHelper::trimSplit($config['recipients']);
$recipients = array_filter(preg_split('/[\s,]+/', $config['recipients']));

$mail->send(null, $recipients);
}
Expand Down

0 comments on commit 2b5adc7

Please sign in to comment.