Mail Server
ON PREMISE This article applies only to Valsight On-Premise. Contact support for Cloud installations.
The application can send emails to users, e.g. notifications on comments or status changes. In order to configure the mail server, add the following to the config.yml file.
Configuration key (spring → mail) | Description | Example value | Default value |
---|---|---|---|
valsightProperties → enabled | Whether the applications e-mail system is enabled or disabled. | true | fasle |
valsightProperties → defaultFrom | The value "from" address that will be used by all e-mails sent from the application | do-not-respond@valsight.local | |
host | The URL of the e-mail server | n/a | |
port | Port of the e-mail server | 465 | n/a |
username | Username of a user that is allowed to send e-mails via the e-mail server | myusername | n/a |
password | Password of a user that is allowed to send e-mails via the e-mail server | mypassword | n/a |
properties | Used for configuring additional properties if the mail server requires SSL or TLS connection. More details below. |
CODE
| n/a |
Example server configuration with SSL:
spring:
mail:
valsightProperties:
enabled: true
defaultFrom: "do-not-respond@valsight.local"
host: smtp.gmail.com
username: user@gmail.com
password: password
port: 465
properties:
mail.smtp.auth: true
mail.smtp.socketFactory.port: 465
mail.smtp.socketFactory.class: javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback: false
Note that the value 'port' and 'mail.smtp.socketFactory.port' must match.
Example server configuration with TLS:
spring:
mail:
valsightProperties:
enabled: true
defaultFrom: "do-not-respond@valsight.local"
host: smtp.gmail.com
username: user@gmail.com
password: password
port: 587
properties:
mail.smtp.starttls.enable: true
mail.smtp.port: 587
Note that the value 'port' and 'mail.smtp.port' must match.