Closed anka closed 9 years ago
It looks like Griddler.configuration.email_service
isn't set. Can you run this in the rails console:
Griddler.configuration.email_service
and paste the result?
If you didn't explicitly set email_service
, that needs to be set, as detailed here.
Thanks, you are totally right. It was my fault, I thought the config would be defaulted to the example. I added the initializer and now I have set Mandrill
as the adapter but now I get
2015-02-06T20:38:31.214727+00:00 app[web.1]: ArgumentError (wrong number of arguments (1 for 0)):
2015-02-06T20:38:31.214731+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:19:in `initialize'
2015-02-06T20:38:31.214733+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:19:in `new'
2015-02-06T20:38:31.214735+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:19:in `process_email'
2015-02-06T20:38:31.214737+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:4:in `block in create'
2015-02-06T20:38:31.214739+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:3:in `each'
2015-02-06T20:38:31.214741+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/griddler-1.1.0/app/controllers/griddler/emails_controller.rb:3:in `create'
2015-02-06T20:38:31.214743+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-02-06T20:38:31.214745+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198:in `process_action'
I am hosting this on heroku
. Any thoughts on this one?
It looks like your processor class takes zero arguments to its initialize
method, but it should take one (the email). We have an example EmailProcessor - what does your EmailProcessor
class look like?
Ok I am so sorry for bothering you with my mistakes. I think I copied some older version of the example email processor. Now everything is working well.
Great! Happy to help.
I am using
and I am hosting it on heroku. When sending a test mail from mandrill I get the following error message: