私はRubyとRedmineの専門家ではありませんが、私はredmineで電子メール通知を設定しようとしています。 Redmineのバージョンconfiguration.ymlで3.4 ルビー2.3.3p222 のPhusion旅客5.1.7Redmineの電子メール設定 - 未定義のメソッド `address = '
私は
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "xxxx.pl"
port: 587
authentication: :plain
domain: 'redmine.xxx.pl'
user_name: '[email protected]'
password: '......'
を持っている。しかし、私はこのエラーを取得する:
Error ID: 54731089
Error details saved to: /tmp/passenger-error-WqNBmN.html
Message from application: undefined method `address=' for ActionMailer::Base:Class (NoMethodError)
私は少しを検索し、私はapplication.rbファイルにメソッドがないと分かります。
そうでRedmineの設定/ application.rb私はそのような何かを追加:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "xxx.pl",
port: 587,
user_name: '[email protected]',
password: '.....',
authentication: :plain
}
をまだ同じエラーを持っています。残念ながら、私はRedmineの設定では例を見つけることができません。
誰でも手伝ってもらえますか?
メーラ設定を 'application.rb'に追加する必要はありません。 Redmineの 'configuration.yml'で十分です。エラーメッセージに属するスタックトレースは、正確に何が問題になるかを判断するのに役立ちます。 – jkraemer
はい、でも同じエラーがあります。私がデフォルトの 'application.rb'を使い、' configuration.yml'で電子メールを設定しても、同じエラーがあり、redmineは起動しません。 – KacproSo