Commit 812e8df6 authored by Marius Burkard's avatar Marius Burkard

- allow multiple email addresses in $to (functions->mail) separated by comma

parent 5a03084f
......@@ -58,6 +58,10 @@ class functions {
if($cc != '') $app->ispcmail->setHeader('Cc', $cc);
if($bcc != '') $app->ispcmail->setHeader('Bcc', $bcc);
if(is_string($to) && strpos($to, ',') !== false) {
$to = preg_split('/\s*,\s*/', $to);
}
$app->ispcmail->send($to);
$app->ispcmail->finish();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment