There is a gem called 'whenever' that makes this pretty easy. It lets you attach a rake task or a model method to a cron job with a nice syntax. And heroku lets you run daily cron jobs (which works with whenever) for free. I have an app doing this on heroku now. The twist is that the free version of heroku runs your daily cron at the same time you start the app, I think. So if you want your daily email at a particular time you have to be careful. Check out the Ryan Bates Railscast on whenever.
On Apr 15, 2011, at 7:57 AM, slioch999 wrote: > Question from an amateur enthusiast: > > I would like to send a daily email to users showing summary details of > new posts on my app. > > The app is on Heroku with Sendgrid installed. > > Any thoughts on how this would work within Hobo etc would be > appreciated. > > Thanks > > Toby > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
