我是第一次安装Redmine后为Redmine配置电子邮件通知.
我创建/etc/redmine/default/email.yml
并添加了:
# Outgoing email settings
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: smtp.example.com
port: 25
domain: example.com
authentication: :login
user_name: example
password: example
Run Code Online (Sandbox Code Playgroud)
访问http:// redmine /我遇到应用程序异常时:
"undefined method 'email_delivery=' for ActionMailer::Base:Class"
进一步指:
"/usr/lib/ruby/vendor_ruby/action_mailer/base.rb 433 in 'method_missing'"
我已按照http://www.redmine.org/projects/redmine/wiki/EmailConfiguration上的说明进行操作(我添加了相关的email.yml文件及相关设置),但不明白需要什么来克服此错误.
我究竟做错了什么?
val*_*nto 14
我只是遇到了同样的问题.我刚刚删除了"email_delivery:"行并将所有内容移回了2个空格,重新启动了apache,它似乎没问题!我的email.yml现在看起来像这样:
production:
delivery_method: :smtp
smtp_settings:
address: smpt.example.com
port: 25
domain: example.com
authentication: :none
Run Code Online (Sandbox Code Playgroud)