<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-mail</artifactId>
</dependency>
spring.mail.host=smtp.example.com
[email protected]

Table 5. Mail notifications configuration options

Property name Description Default value
spring.boot.admin.notify.mail.enabled Enable mail notifications true
spring.boot.admin.notify.mail.ignore-changes Comma-delimited list of status changes to be ignored. Format: "<from-status>:<to-status>". Wildcards allowed. "UNKNOWN:UP"
spring.boot.admin.notify.mail.to Comma-delimited list of mail recipients "root@localhost"
spring.boot.admin.notify.mail.cc Comma-delimited list of carbon-copy recipients
spring.boot.admin.notify.mail.from Mail sender
spring.boot.admin.notify.mail.subject Mail subject. SpEL-expressions are supported "#{application.name} (#{application.id}) is #{to.status}"
spring.boot.admin.notify.mail.text Mail body. SpEL-expressions are supported "#{application.name} (#{application.id})\nstatus changed from #{from.status} to #{to.status}\n\n#{application.healthUrl}"

results matching ""

    No results matching ""