redmine配置SMTP时,发送邮件错误解决方法

    Redmin可以为一些操作提供邮件通知如主题改变,新增问题等,这样可以让开发人员及时知道变化。在使用此功能前需要先配置邮件服务器,将config目录下的email.yml.example更名为email.yml,然后用文本编辑器打开此文件,将内容改为如下:
[b]production:
  delivery_method: :smtp
  smtp_settings:
    address: mail1.swordair.com
    port: 25
    domain: swordair.com
    authentication: :login   #delete this line
    user_name: redmine       #delete this line
    password: redmine        #delete this line[/b]


很多教程都是按照上面的格式来写出来,不知道写的人是不是没有试验过,其实那样在1.0.1版本之后就发送不了邮件,必须修改为

[b]production:
  delivery_method: :smtp
  smtp_settings:
    address: "mail1.swordair.com"
    port: 25
    domain: "swordair.com"
    authentication: :login  
    user_name:" redmine"      
    password: "redmine"   [/b]  

修改成这个配置之后,发送邮件一切正常

你可能感兴趣的:(redmine)