Sha256: c922aa358e4c43f031edb9540a6308916fb20f0958f027e4d927df8e5313ed16

Contents?: true

Size: 310 Bytes

Versions: 8

Compression:

Stored size: 310 Bytes

Contents

namespace :mail_engine do
  desc "Check mail schedule table and send the scheduled mail."
  task :sendmail => :environment do
    puts "==== Start sending scheduled mail ===="
    MailEngine::MailSchedule.available.each { |schedule| schedule.sendmail }
    puts "==== End sending scheduled mail ===="
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mail_engine-0.1.11 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.10 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.9 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.8 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.7 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.6 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.5 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.4 lib/mail_engine/tasks/sendmail.rake