Email configuration in Redmine - undefined method `address='

Question

I'm not an expert in Ruby and Redmine, but I'm trying to configure email notifications in redmine. Redmine version 3.4 ruby 2.3.3p222 Phusion Passenger 5.1.7

In configuration.yml I have

production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "xxxx.pl"
port: 587
authentication: :plain
domain: 'redmine.xxx.pl'
user_name: '.....@redmine.xxx.pl'
password: '......'

But I get this error:

Error ID: 54731089
  Error details saved to: /tmp/passenger-error-WqNBmN.html
  Message from application: undefined method `address=' for ActionMailer::Base:Class (NoMethodError)

I search little bit and figure out, that I have missing methods in application.rb file.

So in Redmine config/application.rb I add something like that:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address:              "xxx.pl",
port:                 587,
user_name:            'powiadomienia@redmine.xxx.pl',
password:            '.....',
authentication:       :plain
}

but still have the same error. Unfortunately I can't find any examples in Redmine configuration.

Can anyone help me?


Show source
| email   | ruby-on-rails   | ruby   | smtp   | redmine   2017-10-04 22:10 0 Answers

Answers to Email configuration in Redmine - undefined method `address=' ( 0 )

Leave a reply to - Email configuration in Redmine - undefined method `address='

◀ Go back