Displaying 1 result from an estimated 1 matches for "member_email".
2006 Aug 12
1
Multiple args
...e.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(args[:mailing], member_email)
@progress += 100/args[:recipents].size
end
@progress = 100
@logger.info("MailQueueWorker: end sending newsletter
#{args[:mailing].title}")
end
end
And I get the following error:...