问题
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