Displaying 1 result from an estimated 1 matches for "deliver_send_mailing".
2006 Aug 12
1
Multiple args
...)
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:
You have a nil object when you didn''t expect it...