GitLab电子邮件设置:通过另一个邮件服务器发送 [英] GitLab email setup: sending via another mail server
本文介绍了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屋!
查看全文