Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.32 KB

File metadata and controls

41 lines (33 loc) · 1.32 KB
sidebar_custom_props
icon
notifications

import metadata from "@sba/spring-boot-admin-server/target/classes/META-INF/spring-configuration-metadata.json"; import { PropertyTable } from "@sba/spring-boot-admin-docs/src/site/src/components/PropertyTable";

Mail Notifications

Mail notifications will be delivered as HTML emails rendered using Thymeleaf templates. To enable Mail notifications, configure a JavaMailSender using spring-boot-starter-mail and set a recipient.

![mail-notification.png](mail-notification.png) Sample Mail Notification with default template

:::info To prevent disclosure of sensitive information, the default mail template doesn’t show any metadata of the instance. If you want to you show some of the metadata you can use a custom template. :::

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

<PropertyTable title="Mail notifications configuration options" properties={metadata.properties} filter={['notify.mail']} includeOnly={true} />