dtaniwaki / mandriller

Mandrill SMTP API integration for ActionMailer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing template error

trungpham opened this issue · comments

For some reason, Mandriller::Base is still expecting a local template to exist.

I had to override this method to avoid the missing template exception.

Mandriller::Base.class_eval do
    def collect_responses(headers)
      []
    end
end

This gem needs a local template to deliver. It's a SMTP API CLIENT.

@dtaniwaki then why does it expose setting the X-MC-Template header if it always needs a local template?

Maybe, you can check their docs first.
http://help.mandrill.com/entries/21688056-Using-SMTP-Headers-to-customize-your-messages

The template is used as something like Rails layout. The rendered body generated from the local template is put into the block in Mandrill side.

thanks man.