diff --git a/processing/Email.php b/processing/Email.php index bc37c31..332d78c 100644 --- a/processing/Email.php +++ b/processing/Email.php @@ -26,7 +26,13 @@ static function send($recipient, $subject, $body, $cc = null) { $mail->setFrom($config["smtp"]["sendAddress"], $config["smtp"]["sendName"]); - $mail->addAddress($recipient); + if (is_array($recipient)){ + foreach ($recipient as &$address) { + $mail->addAddress($address); + } + } else { + $mail->addAddress($recipient); + } if (!empty($cc)) { $mail->addCC($cc); diff --git a/processing/config.php.template b/processing/config.php.template index 6cf0423..6c98d0b 100644 --- a/processing/config.php.template +++ b/processing/config.php.template @@ -127,7 +127,7 @@ return array( 'password' => '', 'sendAddress' => '', // Email address to send as. Usually same as username, 'sendName' => '', // Name to send as. - 'recipient' => '', // Recipient of notifications whenever there's a show submitted. + 'recipient' => array(''), // Recipient address(es) of notifications whenever there's a show submitted. ), // Enable or disable SAML authentication.