Skip to content

Commit 812e8df

Browse files
author
Marius Burkard
committed
- allow multiple email addresses in $to (functions->mail) separated by comma
1 parent 5a03084 commit 812e8df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public function mail($to, $subject, $text, $from, $filepath = '', $filetype = 'a
5858
if($cc != '') $app->ispcmail->setHeader('Cc', $cc);
5959
if($bcc != '') $app->ispcmail->setHeader('Bcc', $bcc);
6060

61+
if(is_string($to) && strpos($to, ',') !== false) {
62+
$to = preg_split('/\s*,\s*/', $to);
63+
}
64+
6165
$app->ispcmail->send($to);
6266
$app->ispcmail->finish();
6367

0 commit comments

Comments
 (0)