[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 752
  • Last Modified:

Send email at specific date time - Rails

Lets say my users can sign up for option A or B i want to send an email to users who signed up for A every Friday and option B users every Monday.

I know how to send email after a specific action, like sign-up but how would i go about this?
0
depassion
Asked:
depassion
1 Solution
 
wesgarrisonCommented:
Make a rake task that grabs the appropriate users and sends an email.

Schedule it with the whenever gem, which will create the appropriate cron entries:
http://github.com/javan/whenever

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now