redmine 配置邮件

参考地址:
https://yq.aliyun.com/articles/5332
http://www.redmine.org/projects/redmine/wiki/EmailConfiguration

在项目根目录/config下添加一个configuration.yml文件
修改如下代码:

# = Redmine configuration file
#
# Each environment has it's own configuration options.  If you are only
# running in production, only the production block needs to be configured.
# Environment specific configuration options override the default ones.
#
# Note that this file needs to be a valid YAML file.
# DO NOT USE TABS! Use 2 spaces instead of tabs for identation.

# default configuration options for all environments
default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  # email_delivery:

  # ==== Simple SMTP server at localhost
  #
  #  email_delivery:
  #    delivery_method: :smtp
  #    smtp_settings:
  #      address: "localhost"
  #      port: 25
  #
  # ==== SMTP server at example.com using LOGIN authentication and checking HELO for foo.com
  # 配置邮箱需要的代码 ########################
  email_delivery:
      delivery_method: :smtp
      smtp_settings:
        address: "smtp.mxhichina.com"
        port: 25
        authentication: :login
        domain: 'mxhichina.com'
        user_name: '[email protected]'
        password: 'password'

然后重新启动 redmine 服务.

测试是否配置成功:
打开Redmine >管理员登陆 > 管理 > 配置 > 邮件通知 >页面底部:发送测试邮件。将会发送邮件到你目前登陆的用户邮箱中。

如果没有配置成功,则这个选项卡显示的是黄色的字,如未对邮件进行配置,config/configuration.yml。

你可能感兴趣的:(redmine 配置邮件)