2

我尝试使用 sendmail 方法在 Redmine 中发送电子邮件,但我没有收到任何电子邮件。因此,我尝试使用以下参数在 Redmine 中配置 smtp 电子邮件设置,但我收到错误“发送邮件时发生错误(执行已过期)”。

production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "box784.bluehost.com"
      port: 465
      authentication: :plain
      user_name: "username+domain.com"
      password: password
      enable_starttls_auto: true

我的信息:

Environment:
  Redmine version                          2.1.4.stable
  Ruby version                             1.8.7 (x86_64-linux)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         MySQL
Redmine plugins:
  no plugin installed
4

2 回答 2

4

After a couple of very late nights playing with all the settings in the configuration.yml file, I have finally been able to get email notifications to work with Redmine on Bluehost. Getting it to work with SMTP was a futile exercise, and Bluehost wasn't very helpful with getting it resolved, however I got it working using sendmail. The trick is to add a couple extra parameters, which really should be documented in the Redmine Wiki help. Here is a copy of my configuration.yml file, which works. It's the enable_starttls_auto and authentication settings that make it work (go figure). Make sure you get the spacing right (each indent has 2 spaces):

production:  
    email_delivery:
        delivery_method: :sendmail
        sendmail_settings:
            arguments: -i
            enable_starttls_auto: false
            authentication: :none

Finally! Working Sendmail with Redmine on Bluehost!

于 2013-05-09T15:13:05.730 回答
0

生产:email_delivery:delivery_method::smtp smtp_settings:enable_starttls_auto:真实地址:

此配置有效。您可以使用 Redmine 中的测试电子邮件功能对此进行测试。

来源:https ://poopcode.com/configure-outlook-email-in-redmine/

于 2020-11-27T17:46:24.660 回答