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: 'xxxxxx@company.com'
        password: 'password'

然后重新启动 redmine 服务.

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

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容