ellite / Wallos

Wallos: Open-Source Personal Subscription Tracker
GNU General Public License v3.0
3.08k stars 140 forks source link

What is the logic for notification of subscription expiration #135

Open hausen1012 opened 9 months ago

ellite commented 8 months ago

Hi. To get notifications you need to:

  1. Enable notifications on the settings and fill the STMP settings. (Test that it is working).
  2. Edit the subscription which you would like to be notified about expiration, and check "Enable notifications for this subscription".
  3. There's a cronjob that runs daily that looks at all the subscriptions that have the notifications enabled, checks the number of days you selected on the settings.
  4. If next payment date of any of the subscriptions that have notifications enable is the number of days away that you have selected in the settings, an email is sent.
hausen1012 commented 8 months ago

I think notifications can be more comprehensive, such as setting multiple times like Uptime Kuma. For example, 1 day, 3 days, 7 days, so even if you ignore a reminder, you can still see other emails.

Alternatively, add a switch to the wallos subscription. If the subscription is enabled and a reminder time of 7 days is set, send a reminder email for the subscription every day for 7 days until the next payment date is not within 7 days.

Thank you for reading my suggestion. It's worth mentioning that there are still some issues with email sending at the moment. For example, it requires me to use port 587, while port 465 is not possible. However, I can use up time kuma. Of course, there are also some other issues mentioned by friends.

Finally, I wish you a happy life. Thank you!