Sha256: 8754b0e34a94b9fc96c63203ddd3d838e1c1bb47acd31ab9d7d3c3b4a7238aa1

Contents?: true

Size: 304 Bytes

Versions: 5

Compression:

Stored size: 304 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.all.each { |schedule| schedule.sendmail }
    puts "==== End sending scheduled mail ===="
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail_engine-0.1.3 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.2 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.1 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.1.0 lib/mail_engine/tasks/sendmail.rake
mail_engine-0.0.1 lib/mail_engine/tasks/sendmail.rake