ruby on rails - Sending emails by schedule -
I need to send mail to the scheduled timings. I can specify two days in which the mail is sending mail.
I will use method As an alternative, you can create a rake for calling your method by sending an email, and this is the small gem of the Nifty, which is to set your cron for automation of the process Can be used for DelayedJob for this.
class email & lt; ActiveRecord :: Base is_to: Campaign End Class CreateEmails & lt; ActiveRecord :: migrations deff changes make_table: email | T | t.integer: days1 t.integer: days2 t.timestamps end end and class campaign & lt; ActiveRecord :: Base has_many: email def end_time created_at + end_at.day end-end
end_time determines that when you end up with the company's activity .
finished_it to fill the field on the company's creation From database "Text">
Comments
Post a Comment