Skip to content

Commit

Permalink
Close #130
Browse files Browse the repository at this point in the history
  • Loading branch information
wlabarron committed Dec 27, 2023
1 parent 7a2596b commit 1004581
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion processing/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion processing/config.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1004581

Please sign in to comment.