SOLVED Due date email notifications
I published a new package now to add new env vars in
/app/data/envif you want to play around with different values.
@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.
I 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?
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...)
@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.
yup, i have pushed the change for next wekan release.