Displaying 1 result from an estimated 1 matches for "mailqueuework".
Did you mean:
mailqueueworker
2006 Aug 12
1
Multiple args
...ling },
:ttl => 800 )
mail_queue_worker.rb:
================
require File.dirname(__FILE__) + "/../../config/environment.rb"
ActionMailer::Base.template_root =
File.expand_path(File.dirname(__FILE__) + "/../../app/views")
class MailQueueWorker < BackgrounDRb::Rails
attr_accessor :progress
def do_work(args)
@progress = 0
@logger.info("MailQueueWorker: start sending newsletter
#{args[:mailing].title}")
@logger.info( args.to_s )
for member_email in args[:recipents]
Newsletter.deliver_send_mailing(a...