NC-17 I configured Email correctly as I got the test email.
- create new folder
- share folder with users -> user receives a notification email
- upload file to folder -> user does not receive a notification email
In Settings -> activity all email options have been set and option email interval seto to submit mail asap.
I can see there is a lot of discussion about this topic - not really solved. Still NC17 has no solid input for this issue?
In essence - NC17 does not listen to the activity settings.
Any input on above is appreciated so much please?
How have you configured your cron settings and in which interval are you running it?
Thanks so much for your reply.
crontab -u www-data -e
0 * * * * httpdusr -f /var/www/nextcloud/occ activity:send-mails hourly
30 7 * * * httpdusr -f /var/www/nextcloud/occ activity:send-mails daily
30 7 * * MON httpdusr -f /var/www/nextcloud/occ activity:send-mails weekly
I need to mention the web service user is httpdusr
So I changed it in the resp lines from php to httpdusr
NC17 installed on a QNAP NAS device
How can I check the following:
- activity emails have been generated per settings indeed? Any queue?
- that the send-mail activity has been executed?
It is never to late to teach a dog new tricks I didn’t know these commands until now, but as I understood it do the same as the following command, which I use on my server, except it is more granular. Have you tried to use that command in a first step?
*/15 * * * * /usr/bin/php -f /srv/www/nextcloud/nextcloud/cron.php
Are you sending your email directly to an external server or are you using your own server. The latter would allow you to check the log files of your mail server which might leads you to the root cause of the problem.
Thanks again for your input.
I use smtp.gmail.com for the email notifications. Testing using the NextCloud test functionality it works.
I have been digging further and have half of the expected result now by doing the follwoing:
- all user profile activities settings switched on
- share folder with multiple users
- upload file to the shared folder - records added to the NextCLoud DB “oc_activity_mq” table -> NO email notification
- executed the command:
sudo -u httpdusr /mnt/ext/opt/apache/bin/php -f /share/Web/nextcloud/cron.php => no result
- Opened the NextCloud DB “oc_jobs” table and replaced time stamp values by “0”
- executed the following command again:
sudo -u httpdusr /mnt/ext/opt/apache/bin/php -f /share/Web/nextcloud/cron.php => email has been submitted immediately listing the expected activities.
Values are now per screen shot below:
Repeat step 1 through 4 and again no email submitted.
I can see records have been added to the NextCloud DB “oc_activitiy_mq” table.
Do you have any suggestion ?
Hi, did you ever find a solution for this? I’m on NC 19 and emails STILL are not sending for calendar notifications. I can see the log that OCA\Activity\BackgroundJob\EmailNotification is being run, but not receiving anything. SMTP settings are all good, test emails and email for registration etc all work fine.
I made a quick perl script hack to check the notifications table in the db and forward emails for selected users:
This topic was automatically closed after 10 hours. New replies are no longer allowed.