【Redmine】邮件触发以及附件图片预览,配置摘要

1、邮件触发,(前提已经做好Postfix的配置了)
   修改配置文件/var/www/redmine/config/configuration.yml
production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: 192.168.**.**
      port: 25
      authentication: :none
      enable_starttls_auto: false
      openssl_verify_mode: 'none'
     
    登录管理---邮件通知


2、配置让附件的图片可预览显示
     路径:/var/www/redmine/app/views/attachments/_links.html.erb

<% images = attachments.select { |a| a.image? } %>  
  
<% unless images.empty? %>  
 
<% images.each do |attachment| %>  
<%= link_to image_tag(url_for({:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filen
ame })),  
{:controller => 'attachments', :action => 'show', :id => attachment, :filename => attachment.filename }, :class => 'lightbox', :
rel => 'attachments', :title => "#{attachment.filename}#{ ('-' + attachment.description) unless attachment.description.blank? }"
 %>  
<% end -%>  
 
<% end -%>

3、删除Redmine插件
rake redmine:plugins:migrate NAME=redmine_todos VERSION=0 RAILS_ENV=production
移除插件的文件
mv plugins/redmine_todos/ /opt/
service redmine stop
service redmine start

4、定期给项目组成员发送任务list:

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20659905/viewspace-2143405/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20659905/viewspace-2143405/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值