You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scheduled Task seems working once though i setup $this->hourly (It has run once and has stopped)
Must i need to configurate more?
class Tasks extends \Piwik\Plugin\Tasks
{
public function schedule()
{
$this->hourly('remindMeToLogIn');
}
public function remindMeToLogIn()
{
$mail = new \Piwik\Mail();
$mail->setFrom('noreply@xxx.com');
$mail->addTo('xxxx@gmail.com');
$mail->setSubject('Check stats');
$mail->setBodyText('Log into your Matomo instance and check your stats!');
$mail->send();
}
}
The text was updated successfully, but these errors were encountered:
Scheduled Task seems working once though i setup $this->hourly (It has run once and has stopped)
Must i need to configurate more?
class Tasks extends \Piwik\Plugin\Tasks
{
public function schedule()
{
}
The text was updated successfully, but these errors were encountered: