email - Gerrit v3.2 中配置的 SMTP 服务器无法发送电子邮件
问题描述
我已经使用所需的 SMTP 详细信息编辑了 gerrits 配置文件:
[sendemail]
enable = true
smtpServer = smtp.server.com
smtpServerPort = 25
但问题是,细节不知何故不适用于 gerrit,但相同的值确实适用于 Jenkins。
Gerrit 那里真的没有有用的文档。我什至尝试使用以下命令配置项目配置文件的服务器端设置:
[access]
inheritFrom = All-Projects
[submit]
action = inherit
[access "refs/*"]
owner = blah blah blah
[notify "Administrators"]
email = blah@blahblahblah.com
我也尝试查看错误日志,但没有。任何指示都会对我很有帮助。
解决方案
问题解决了
gerrit.conf 端的配置只是它的服务器端。
对于客户端,请转到Settings -> Notifications.
设置通知
->Project Name: <whichever project you have access to>
->Branch: master
或您选择的任何其他分支。
->Save Changes
配置通知后,订阅的事件将通过 Gerrit 以电子邮件的形式发送给您。
推荐阅读
- symfony - 如果使用 symfony 邮件程序在用户设置中更改电子邮件,则发送确认电子邮件
- c# - 无法使用 Confluent .Net 客户端连接到 Azure 事件中心
- python - 使用 Python 在 CPU/GPU 上加速图论和复杂网络算法的有效方法?
- java - 如何更新和避免“sun.net.www.protocol.https.Handler 是内部专有 API,可能会在将来的版本中删除”
- azure - 是否有用于 Microsoft 身份平台和 OAuth 2.0 授权的 OAuth 2 构建器?
- mysql - PK 和 FK 建模问题
- c# - 使用 EWS API (C#) 发送电子邮件时出现“未知邮箱”错误
- visual-studio - 使用 IIS 服务器时如何在 .NET Core 3.1 应用程序中运行代码?
- android-studio - 如何在Android中为数据对象提取字符串资源?
- flutter - 如何在构建有状态小部件之前等待功能?