Skip to main content
Skip table of contents

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 (grails → mail)DescriptionExample valueDefault value
disabledWhether the applications e-mail system is enabled or disabled.falsetrue
externalUrlThe URL of the application as seen by end users. E-mails may contain links to certain pages in the application and this setting is needed to properly resolve them if the application is behind a reverse proxy.https://www.mydomain.com/my-valsight-appn/a
hostThe URL of the e-mail serversmtp.mymailserver.comn/a
portPort of the e-mail server465n/a
usernameUsername of a user that is allowed to send e-mails via the e-mail servermyusernamen/a
passwordPassword of a user that is allowed to send e-mails via the e-mail servermypasswordn/a
default → fromThe value "from" address that will be used by all e-mails sent from the applicationautogen@mydomain.comdo-not-respond@valsight.local
propsUsed for configuring additional properties if the mail server requires SSL or TLS connection. More details below.
YML
props:
   mail.smtp.auth: true
   mail.smtp.socketFactory.port: 465
   mail.smtp.socketFactory.class: javax.net.ssl.SSLSocketFactory
   mail.smtp.socketFactory.fallback: false
n/a

Example server configuration with SSL:

YML
grails:
   mail:
     disabled: false
     externalUrl: https://www.mydomain.com/my-valsight-app
     host: smtp.gmail.com
     username: user@gmail.com
     password: password
	 default:
		from: "do-not-respond@valsight.local"
     port: 465
     props:
        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:

YML
grails:
   mail:
     disabled: false
     externalUrl: https://www.mydomain.com/my-valsight-app
     host: smtp.gmail.com
     username: user@gmail.com
     password: password
	 default:
		from: "do-not-respond@valsight.local"
     port: 587
     props:
        mail.smtp.starttls.enable: true
		mail.smtp.port: 587

Note that the value 'port' and 'mail.smtp.port' must match.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.