Closed andrewlynch closed 2 years ago
I have the same issue.
Ok, I see what’s going on. The gem requires ActionMailer to be fully loaded to function, so, unless ActionMailer::Base is loaded before the file that references PostmarkRails::TemplatedMailer
, referencing it will cause an error. The workaround right now is to add the following to your templated mailer files:
require 'postmark-rails/templated_mailer'
Based on the wiki entry regarding the templating implementation I wrote the following
However, when called I get a
NameError (uninitialized constant PostmarkRails::TemplatedMailer)
.When inheriting from
ApplicationMailer
and includingPostmarkRails::TemplatedMailerMixin
I have no such issues.