Due date email notifications
-
@girish said in Due date email notifications:
@MarchinBunny This feature should work out of the box if Wekan supports it. Does it not work? What is the setting that you mention in docker-compose.yml? Cloudron does not use docker compose, we have our own packaging.
Nope, I don't think it works out of the box from what I can tell. I certainly have never received an email for due dates. If you scroll through the file I mentioned, there is a section called "==== EMAIL DUE DATE NOTIFICATION =====" Below that you will see the settings are commented out with hashtags. Here is a copy and paste of the specific section I am talking about.
# ==== EMAIL DUE DATE NOTIFICATION ===== # https://github.com/wekan/wekan/pull/2536 # System timelines will be showing any user modification for # dueat startat endat receivedat, also notification to # the watchers and if any card is due, about due or past due. # # Notify due days, default is None, 2 days before and on the event day #- NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2,0 # # Notify due at hour of day. Default every morning at 8am. Can be 0-23. # If env variable has parsing error, use default. Notification sent to watchers. #- NOTIFY_DUE_AT_HOUR_OF_DAY=8
-
@MarchinBunny Can you check if email itself is working in Wekan? You can do this in Wekan's Admin Panel -> Email -> Send test mail.
It seems https://github.com/wekan/wekan/commit/5084cddf37ba16ce0855f8575c39f5e62d1b7f67#diff-3254677a7917c6c01f55212f86c57fbf is the commit that introduced the feature. The defaults are as you pointed out already. So, it's probably an upstream bug if it doesn't work. Can you ask them how to test this feature?
-
@girish said in Due date email notifications:
@MarchinBunny Can you check if email itself is working in Wekan? You can do this in Wekan's Admin Panel -> Email -> Send test mail.
It seems https://github.com/wekan/wekan/commit/5084cddf37ba16ce0855f8575c39f5e62d1b7f67#diff-3254677a7917c6c01f55212f86c57fbf is the commit that introduced the feature. The defaults are as you pointed out already. So, it's probably an upstream bug if it doesn't work. Can you ask them how to test this feature?
Yes, I have verified that sending a test email does work. I will mess with the env file and see if that works. With that said, I noticed you added "NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2" when it should be "NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2,0"
There was a commit that changed it so you can specify multiple days. For example, the 2 is for 2 days before it's due, and the 0 is on the day it's due. It's explained here.
https://github.com/wekan/wekan/commit/e60926f8471c05f50877f46568554e7b2f24815a#diff-4e5e90c6228fd48698d074241c2ba760I already edited it myself so I will let you know if it works or not. Sadly since I can only specify the hour the email is sent out, it means I can really only test it once every hour XD. Hopefully it works the first time. Crossing my fingers lol.
If it doesn't I will check with them and see what's up.
-
Ok, so it didn't work. I wrote an issue report on their github.
-
Ok last reply for this issue as I think you can mark it solved. The environment variables do seem to be working now from what I can tell. I guess my initial tests just for some reason didn't work. But I did get an email today. So it works.
Thanks for the help. Appreciate it.
-
I'm not getting these emails.
How do I find and edit the env file?
And could a default working env file not be added to the package?
Thanks!
-
@jdaviescoates said in Due date email notifications:
How do I find and edit the env file?
As per https://docs.cloudron.io/apps/wekan/
Custom env vars can be added in /app/data/env. Be sure to restart the app after editing this file.
/me goes to have a look and see what I can see...
-
@jdaviescoates said in Due date email notifications:
As per https://docs.cloudron.io/apps/wekan/
Custom env vars can be added in /app/data/env. Be sure to restart the app after editing this file.
/me goes to have a look and see what I can see...
OK, so this is what I see:
# Add custom environment variables in this file # export NOTIFY_DUE_AT_HOUR_OF_DAY=8 # export NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2
@MarchinBunny what did you do? Just edit out the # at the beginning and at ,0 at the end of that line? (I'll try that...)
Thanks!
@girish be good to have due date emails working out of the box, no?
-
@jdaviescoates I guess we can uncomment those lines by default. No harm done.
-
@girish said in Due date email notifications:
I guess we can uncomment those lines by default.
And perhaps add the ,0 as suggested by @MarchinBunny too?