Articles tagged 'actionmailer'

  • Rails 3.1 smtp gmail Errno::ECONNREFUSED Connection refused

    October 9, 2011

    This post was originally published in the Rambling Labs Blog on October 9, 2011.

    I was trying out the rails 3.1 smtp mailer on the sandbox application I use to test all the new stuff and it was throwing this error:

    Errno::ECONNREFUSED in TestController#create
    Connection refused - connect(2)

    And I had this configuration on config/environments/development.rb:

    Demo::Application.configure do
      # ...
      config.action_mailer.delivery_method :smtp
      config.action_mailer.smtp_settings = {
        enable_starttls_auto: true,
        address: '',
        port: 587,
        domain: '',
        authentication: 'plain',
        user_name: '<>',
        password: '<password>'
      # ...

    I tried quite a number of combinations for…

    Continue Reading →