How to configue SMTP in sonar.properties?

时间秒杀一切 提交于 2019-12-11 08:40:58

问题


SonarQube's SMTP settings can be changed in the web UI.

How can I set those SMTP settings in the sonar.properties configuration file?


回答1:


You can also use sonar.properties to define the smtp settings. But this approach is not recommended and therefore barely documented.

However, there is a little of documentation in the sources.

An example:

email.smtp_host.secured=my.smtp.server
email.smtp_port.secured=9918
email.smtp_secure_connection.secured=true
email.smtp_username.secured=slartidan
email.smtp_password.secured=password123
email.from=slartidan@example.com
email.prefix=[SONARQUBE] Important:


来源:https://stackoverflow.com/questions/45736632/how-to-configue-smtp-in-sonar-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!