简体   繁体   English

Redmine应用程序的电子邮件配置错误

[英]Error in email configuration for Redmine Application

My configuration file contains the following code: 我的配置文件包含以下代码:

production:
    email_delivery:
       delivery_method: :sendmail
development:
    email_delivery:
       delivery_method: :sendmail

But I'm still getting the following error while running Redmine application in production mode. 但是在生产模式下运行Redmine应用程序时,仍然出现以下错误。

  NoMethodError (undefined method `error' for 0:Fixnum):
  app/models/mailer.rb:431:in `deliver_mail'
  app/models/mailer.rb:86:in `block (2 levels) in deliver_issue_edit'
  app/models/issue.rb:826:in `each_notification'
  app/models/mailer.rb:85:in `block in deliver_issue_edit'
  app/models/journal.rb:77:in `block in each_notification'
  app/models/journal.rb:75:in `each'
  app/models/journal.rb:75:in `each_notification'
  app/models/mailer.rb:84:in `deliver_issue_edit'
  app/models/journal.rb:190:in `send_notification'
  app/models/journal.rb:54:in `save'
  app/models/issue.rb:1515:in `create_journal'
  app/models/issue.rb:165:in `create_or_update'
  app/controllers/issues_controller.rb:478:in `block in save_issue_with_child_records'
  app/controllers/issues_controller.rb:466:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:188:in `update'

I have no clue about why I am getting this error and I have also checked the configuration against Redmine documentation and action mailer configuration. 我不知道为什么会收到此错误,我还对照Redmine文档和Action Mailer配置检查了该配置。 I still can't figure out the cause. 我仍然不知道原因。 Has anybody faced a similar issue? 有人遇到过类似的问题吗?

Did you just post the header of your email configuration section in the configuration file or are these your only settings? 您只是在配置文件中发布了电子邮件配置部分的标题,还是仅这些设置? An email configuration section should look something like this: 电子邮件配置部分应如下所示:

production:  
 email_delivery:  
  delivery_method: :smtp
   smtp_settings:
   address: smtp.example.net
   port: 25
   domain: example.net
   authentication: :login
   user_name: redmine@example.net
   password: redmine

Refer to the Redmine documentation . 请参阅Redmine 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM