GitLab 电子邮件设置:通过另一个邮件服务器发送 [英] GitLab email setup: sending via another mail server

查看:12
本文介绍了GitLab 电子邮件设置:通过另一个邮件服务器发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下gitlab在gitlab.yml中有下一个配置:

By default gitlab has the next configuration in gitlab.yml :

email:
  from: notify@gitlabhq.com
  host: gitlabhq.com

但是,我需要指定其他变量(主机、端口、用户、密码等)才能使用另一个邮件服务器.

but, I need to specify other variables (host, port, user, password, etc) to use another mail server.

我该怎么做?

推荐答案

这也让我很困惑.但是要更改邮件设置,您可以在 config/environments/production.rb 中编辑它们,只需添加一个 config.action_mailer.smtp_settings 就像常规的 rails 应用程序一样.

This confused me too. But to change the mail setting you edit them in config/environments/production.rb Just add a config.action_mailer.smtp_settings like a regular rails app.

这篇关于GitLab 电子邮件设置:通过另一个邮件服务器发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆