Displaying 1 result from an estimated 1 matches for "create_mail_prueba".
2006 Aug 07
9
problems with ActionMailer
...my worker
(Masivo is the ActionMailer subclass):
def do_work(args)
@progress = 0
@logger.info("MAILER: starting job")
records = Record.find(:all)
total = records.size
records.each_with_index do |record, idx|
recipients = record.emails.to_a
email = Masivo.create_mail_prueba(recipients)
email.set_content_type("text/html")
Masivo.deliver(email)
sleep(10) # this is here for testing purposes
end
@logger.info("MAILER: job done")
@progress = 100
end
this is the code in Masivo:
def mail_prueba(recipients)
@recipient...