Discussion:
email
Tushar Nadkar
2018-11-22 09:29:02 UTC
Permalink
i have email id of multiple user , so how can i send mail after 3 days when
he click a button .or checkout button in django
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAHYEvMrV2x2TOwL1NmDrJAxpxVSFU%2BkiyeaWPdYhF09SfzPTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yavin Aalto Arba
2018-11-22 13:16:46 UTC
Permalink
https://docs.python.org/3/library/sched.html ?
Post by Tushar Nadkar
i have email id of multiple user , so how can i send mail after 3 days
when he click a button .or checkout button in django
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAAHYEvMrV2x2TOwL1NmDrJAxpxVSFU%2BkiyeaWPdYhF09SfzPTg%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAAHYEvMrV2x2TOwL1NmDrJAxpxVSFU%2BkiyeaWPdYhF09SfzPTg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B%2Be-ZXVnHnatnY%3DhKvHLLkwY9oJZXTBxxhBSD9QXiC%2BZE%2Bqmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ryan Nowakowski
2018-11-22 21:52:35 UTC
Permalink
Post by Tushar Nadkar
i have email id of multiple user , so how can i send mail after 3 days when
he click a button .or checkout button in django
I record the timestamp of the button click in a model then I run cron
or celery periodically to query the model like this:

ready_to_email = MyModel.objects.filter(when_button_clicked__lte=timezone.now()-timedelta(days=3), already_emailed=False)

Then I use the django mail module to send the emails. Finally I record
that the emails were sent in the model(already_emailed = True) so they
don't get sent again.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20181122215235.GF8710%40fattuba.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...