gkrid / dokuwiki-plugin-bez

MIT License
1 stars 3 forks source link

How to enable email notifications? #10

Open Chris75forumname opened 11 months ago

Chris75forumname commented 11 months ago

Hi, I read in your code in /plugin/bez/cron-daily.php, and I wonder how is the server started to send out email notifiations, when there is no traffic, like on the weekends. Do I have to setup a cronjob, and if yes, how is it done? Could you provide an example entry for crontab?? I couldn't find any documentation on the email notification feature.

UPDATE: I received an email notification from your system today, but I still wonder: is the notification action dependend on any activity in the wiki or would it notify me, let's say on a Sunday, when the wiki lays dormant, and if so, how does that even work??

Unfortunately, there is not much documentation how to set up bez. Is there any demo page or other publication about your system?

Thank you for your efforts!

Chris75forumname commented 11 months ago

UPDATE 1: I got one notification from your plugin today, around 11:30 (not exactly the same time as yesterday). I found a notification cookie in the code. So, is that how it works?? I will test this some more.

What about notification settings in DokuWiki, do I have to care about those??

And what about settings of the smtp plugin?? Are those relevant??

Chris75forumname commented 11 months ago

UPDATE 2: I got NO notification from your plugin over the weekend, when the wiki was not visited, whatsoever. But what I observed is, that when someone from the bez_admin group logged into the wiki on Monday morning, email notifications were send out. No action was triggered, however, when a regular user logged in, one hour earlier. And interestingly, there seems to be no need to visit the page where bez lives. All, that's needed, is, for some bez_admin to log into the wiki. And it means, no notification emails are send out, as long as the wiki is not actively visited by one of the bez_admins.
How can I set it up, so that email notifications are send automatically each day without someone logging into the wiki??