ProjectManagement::Redmine增加自动发送邮件功能
Redmine作为协作分享的平台,邮件通知功能自然是必不可少的了。本文采用sendmail作为邮件传输代理,完成邮件自动发送的功能。
1、安装配置sendmail
sudo apt-get install sendmail
sudo sendmailconfig(一路选择Y)
2、修改Redmine邮件配置文件
cd /usr/share/redmine/config
cp email.yml.example email.yml
将email.yml修改成如下:
3、使能Redmine邮件发送功能production:
delivery_method: :sendmail
sendmail_settings:
address: smtp.example.net
port: 25
domain: example.net
authentication: :login
user_name: "redmine@example.net"
password: "redmine"
4、重启apache2服务sudo vi /usr/share/redmine/config/environment.rb
将config.action_mailer.perform_deliveries = false 改为 config.action_mailer.perform_deliveries = true
sudo /etc/init.d/apache2 restart