Personally, I'd setup a simple cronjob on my machine that runs a Django management command. The command would get a list of users who are eligible to receive emails and send it to them.
I would have just used the send_mail directly from my management command, but if you already have a RQ setup for that, just go ahead and use the same. This approach is simple and doesn't require using the rq-scheduler. But if you really want, using rq-scheduler is basically the same and the end result is similar. On Wednesday, August 17, 2016 at 3:10:27 PM UTC+4, Kishan Mehta wrote: > > Thanks but I already have django rq adn rq-scheduler configured and > running so I was thinking to use it and avoid celery. > > > On Wed, Aug 17, 2016 at 4:37 PM, Dheerendra Rathor <dheeru....@gmail.com > <javascript:>> wrote: > >> I’ll suggest you to use some background task runner. Celery will work >> great for you as it is developed for Python and work on multiple platform >> with multiple types of message queues. >> >> >> >> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for >> Windows 10 >> >> >> >> *From: *Kishan Mehta <javascript:> >> *Sent: *Wednesday, August 17, 2016 4:35 PM >> *To: *django...@googlegroups.com <javascript:> >> *Subject: *Send mail after x hours >> >> >> >> Hi guys, >> >> >> >> I am using django 1.9. I am working on requirement where we need to send >> users reminder to activate their account by email after x hours h/she has >> signed on our platform. >> >> >> >> I have send_mail task and I have configured >> https://github.com/ui/django-rq to send mails. >> >> >> >> One way I can think of is to set up a cron job using >> https://github.com/ui/rq-scheduler which runs every 5 mins to check for >> users who signed up 6 hours before. >> >> >> >> Is there any better way to do this ? >> >> >> >> Thanks, >> >> Kishan >> >> -- >> 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 <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> 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/CAC5ThKGOFyWObnZTV8VpT57eyWqEq5%2B-OaMj7L%3Dr%3Dh41bJVWXA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/django-users/CAC5ThKGOFyWObnZTV8VpT57eyWqEq5%2B-OaMj7L%3Dr%3Dh41bJVWXA%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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@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/d82c93a3-0ca3-4774-8b14-1c08f21ce916%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.