Skip to content
Snippets Groups Projects
Commit 812e8df6 authored by Marius Burkard's avatar Marius Burkard
Browse files

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

parent 5a03084f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment