Have anyone made Remail to work with Ruby on Rails. I am trying to set it up, but it
throws Errno::ECONNREFUSED (Connection refused - connect(2)): while sending an email. I followed the instructions in the this page.
environment.rb
Emailsample::Application.configure do
config.action_mailer.delivery_method = :remail
config.action_mailer.remail_settings = {
:app_id => "my-gae-app-id",
:api_key => "3d4f1a200e5811e081e00800200c9a66"
}
end
In Rails 3, you shouldn’t change the
environment.rbfile.Write your configuration in the
application.rbfile instead.Enter the following configurations in the
application.rbfile, within theclass Application < Rails::Applicationsection.Also, make sure the Gem is listed in the
Gemfilefile and you runbundle install.