my app needs a daily application running to check the database on some
changes and sending out some emails to customers.
This is certainly possible. We have a cron job that wakes up every day
at some fixed time and sends out an email to customers who have
indicated they want our mailing.
ActionMailer is quite nice to work with, although suffers from some
minor foibles (eg in current versions the path to sendmail is not a
configurable option).
ActionMailer can either talk directly to sendmail or it can use smtp to
send mail.
Thanks Fred,
I am new to rails and I never heard something about a cron job. I think
I need to read about it first.
any good sources to start on?
Andreas
Frederick C. wrote:
Andreas S. wrote:
hi all,
my app needs a daily application running to check the database on some
changes and sending out some emails to customers.
This is certainly possible. We have a cron job that wakes up every day
at some fixed time and sends out an email to customers who have
indicated they want our mailing.
ActionMailer is quite nice to work with, although suffers from some
minor foibles (eg in current versions the path to sendmail is not a
configurable option).
ActionMailer can either talk directly to sendmail or it can use smtp to
send mail.
cron is nothing to do with rails. it’s a unixy thing that allows you to
schedule the execution of stuff, which can of course include a ruby
script.
You could also have a long running rails process which spends most of
its time sleeping and occasionally wakes up to send an email
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.