Closed hovancik closed 10 years ago
Griddler.configure creates a new instance of Configuration, which defaults to SendGrid.
You want to call Griddler.configuration.email_service
.
You're setting it correctly, then when you call Griddler.configure.email_service
, Griddler.configure
creates a new Configuration and returns it, and the default is :sendgrid
.
You don't want to call Griddler.configure
a second time, so the accessor is Griddler.configuration
.
thanks for explanation
Rails 4.1.1, griddler (0.6.4)
here is my file in initializers:
Griddler.configure do |config| config.processor_class = EmailProcessor # MyEmailProcessor config.processor_method = :process # :custom_method config.to = :email # :full, :email, :token config.cc = :full # :full, :hash, :token config.from = :email # :full, :token, :hash
:raw => 'AppName s13.6b2d13dc6a1d33db7644@mail.myapp.com'
:email => 's13.6b2d13dc6a1d33db7644@mail.myapp.com'
:token => 's13.6b2d13dc6a1d33db7644'
:hash => { raw: [...], email: [...], token: [...], host: [...], name: [...] }
config.reply_delimiter = '-- REPLY ABOVE THIS LINE --' config.email_service = :mandrill # :cloudmailin, :postmark, :mandrill, :mailgun end
but when in rails console, I got this:
2.1.2 :001 > Griddler.configure.email_service
=> Griddler::Adapters::SendgridAdapter
What am I doing wrong?