Search code examples
ruby-on-railsrubypostgresqlmailer

How to save mail and send it later


I want to save the mail sent on certain days (eg.sunday) in database and then send them on next day. I want to know if it is possible.

And how to save the mail object into database.


Solution

  • You'll need to configure a cronjob which is executed every sunday, and which retrieves your mail-content and then sends it out...