Skip to content

Commit

Permalink
Merge pull request #138 from matomo-org/matomo4compat
Browse files Browse the repository at this point in the history
Matomo 4: Fix email not correctly configured
  • Loading branch information
tsteur authored Jul 31, 2020
2 parents aaaf649 + 19972e6 commit 81aa126
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function notifyQueueSize()
$message = $message . "<br /><br />Sent from " . SettingsPiwik::getPiwikUrl();
$mail = new Mail();
$mail->setDefaultFromPiwik();
$mail->addTo($emailsToNotify);
foreach ($emailsToNotify as $emailToNotify) {
$mail->addTo($emailToNotify);
}
$mail->setSubject('Queued Tracking - queue size has reached your threshold');
$mail->setWrappedHtmlBody($message);
$mail->send();
Expand Down

0 comments on commit 81aa126

Please sign in to comment.