trisignia / mass_mandrill

mass_mandrill
MIT License
6 stars 3 forks source link

Send emails asynchronously #4

Closed tangrufus closed 10 years ago

tangrufus commented 10 years ago

Is MassMandrill a child class of ActionMailer?

Where should I add 'include Resque::Mailer' to make mass mandrill works with ResqueMailer ?

Thanks!

strika commented 10 years ago

Hi. MassMandrill::MandrillMailer is not a child class of ActionMailer. This makes MassMandrill compatible with non-Rails applications.

That being said, MassMandrill is probably not compatible with ResqueMailer. It would need few more tweaks to make it compatible - like adding #message method (https://github.com/zapnap/resque_mailer/blob/master/lib/resque_mailer.rb#L48).

For now, I would recommend wrapping email sending in a Resque job. Will that work for you?