Remind the users when their accounts are expiring

27 views
Skip to first unread message

pije76

unread,
Apr 11, 2014, 7:39:04 AM4/11/14
to django...@googlegroups.com
How to remind the users via email when their accounts are expiring based on the time schedule (such as: 2 weeks away from deactivation & the day before the deactivation itself). Are there recommended app/package to use? Thanks for helping.

Javier Guerra Giraldez

unread,
Apr 11, 2014, 9:26:04 AM4/11/14
to django...@googlegroups.com
On Fri, Apr 11, 2014 at 6:39 AM, pije76 <panj...@hotmail.com> wrote:
> How to remind the users via email when their accounts are expiring based on
> the time schedule (such as: 2 weeks away from deactivation & the day before
> the deactivation itself).


I wouldn't bother with searching for an app. just write a custom
command (https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/)
that queries all accounts with some apropriate conditions. for
example:

(expiration date <= today+2weeks) and (last email date <= today - X days)

and write the email for each one
(https://docs.djangoproject.com/en/1.6/topics/email/). then have cron
execute that command once a day.

--
Javier
Reply all
Reply to author
Forward
0 new messages