Gitlab邮件提醒方便跟踪项目进度,在这里介绍两种方式,一种是用系统的sendmail发送邮件,另一种是GMAIL的stmp来发送邮件
 
第一种 用系统的sendmail发送邮件
 
cd /home/gitlab/gitlab/
vi config/environments/production.rb
将这行 # config.action_mailer.delivery_method = :sendmail
改为    config.action_mailer.delivery_method = :sendmail
保存config/environments/production.rb
 
编辑config/gitlab.yml
vi config/gitlab.yml
对应修改一下配置
web:
  host: gitlab123.com
  port: 80
  https: false
 
email:
   from: notify@gitlab123.com
   protocol: http
   host: gitlab123.com
 
git_host:
   host: gitlab123.com
 
编辑/etc/hosts
加入你的ip对应gitlab123.com
10.0.0.71    gitlab123.com
 
第二种 GMAIL的stmp来发送邮件
cd /home/gitlab/gitlab/
vi config/environments/production.rb
 
在# config.action_mailer.delivery_method = :sendmail下加入
 
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
 
config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'gmail.com',
  :user_name            => 'account@gmail.com',
  :password             => 'password',
  :authentication       =>  :plain,
  :enable_starttls_auto => true
}
 
#配置好你的邮箱和密码
 
编辑config/gitlab.yml
vi config/gitlab.yml
对应修改一下配置
email:
   from: account@gmail.com
   protocol: http

最新文章

  1. 使用C#处理基于比特流的数据
  2. MVC Controller中View(model)如何在 View中的index页面获得?
  3. WinForm控件TreeView 只部分节点显示 CheckBox
  4. 使用JDBC访问SQLServer 2008
  5. Python SyntaxError: Non-ASCII character '\xe5'
  6. canvas个人总结
  7. 网易云课堂_艾叔:零基础一站式C语言|C程序设计精讲_章节12:指针
  8. SetThreadAffinityMask设置线程亲缘性
  9. KB奇遇记(3):IT现状
  10. 基于QEMU的ARM Cortex-A9开发板Vexpress-ca9的Linux内核的编译和运行
  11. C# Split 根据组合字符进行拆分数组用法
  12. 浅谈RMQ
  13. Spark环境搭建(七)-----------spark的Local和standalone模式启动
  14. 第五章 服务容错保护:Spring Cloud Hystrix
  15. C# 实现CRC16校验
  16. React Native 教程:001 - 如何运行官方控件示例 App
  17. Linux shell中处理
  18. 【译】第9节---EF Code First中数据注解
  19. C#中三层架构UI、BLL、DAL、Model实际操作
  20. iOS设计模式-原型模式

热门文章

  1. 还在为百度网盘下载速度太慢烦恼?chrome浏览器插件帮你解决!
  2. Python之爬虫-段子网
  3. POJ-20407Relatives/NYOJ-333mdd的烦恼,欧拉函数简单应用,模板A
  4. 防火墙内设置FileZilla Server注意事项
  5. android开发里跳过的坑——onActivityResult在启动另一个activity的时候马上回调
  6. Thinkphp5.0 的请求方式
  7. NOIP 2010 关押罪犯
  8. hdu 5015 233 Matrix (矩阵高速幂)
  9. 百度知道的代码复制粘贴到VB没有换行怎么办
  10. STL非变易算法