mail sending

19 views
Skip to first unread message

Tushar Nadkar

unread,
Nov 22, 2018, 1:53:42 AM11/22/18
to django...@googlegroups.com
when a button is clicked , i want to send specific mail after 3 days ? how can i do that in django

mazz ahmed

unread,
Nov 22, 2018, 2:07:08 AM11/22/18
to django...@googlegroups.com
celery is Django package check out that.

On Thu, Nov 22, 2018 at 11:53 AM Tushar Nadkar <tushar....@gmail.com> wrote:
when a button is clicked , i want to send specific mail after 3 days ? how can i do that 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

mazz ahmed

unread,
Nov 22, 2018, 2:08:11 AM11/22/18
to django...@googlegroups.com

Hari

unread,
Nov 22, 2018, 8:43:03 AM11/22/18
to django...@googlegroups.com
Please check below link.It may help you..Basically you need to set up celery.


On Thu, Nov 22, 2018, 12:23 PM Tushar Nadkar <tushar....@gmail.com> wrote:
when a button is clicked , i want to send specific mail after 3 days ? how can i do that in django

Jani Tiainen

unread,
Nov 22, 2018, 9:49:21 AM11/22/18
to django...@googlegroups.com
Hi.

Essentially you need to record the time you want your mail to be sent and then you need some kind of background worker to check (periodically) if there are any mails to be sent.

Celery is one tool that can do that.

I personally use simple cron job that uses django management command to achieve same stuff (sending emails asynchronously).

Tushar Nadkar <tushar....@gmail.com> kirjoitti to 22. marrask. 2018 klo 8.53:
when a button is clicked , i want to send specific mail after 3 days ? how can i do that in django

Joel

unread,
Nov 22, 2018, 9:12:22 PM11/22/18
to django...@googlegroups.com
django-kronos is probably the easiest to do this. As mentioned, you could create a management command to check a database or file for the time when you want to run this, with any other data, then you'd set an interval at which you want to check if mails need be sent, and then execute your mail sending function if the criteria is satisfied.

Reply all
Reply to author
Forward
0 new messages