69. Refactoring with spring-boot-starter-mail (#7)

This commit is contained in:
Art
2021-09-08 22:31:23 +03:00
parent f39c32e2c2
commit b5011e40b6
5 changed files with 29 additions and 54 deletions

View File

@ -5,6 +5,19 @@ server:
# enabled: false
spring:
mail:
host: smtp.gmail.com
port: 587
username: ${PORTAL_MAIL_USERNAME:fake.user@gmail.com}
password: ${PORTAL_MAIL_PASSWORD:fake_password}
properties:
mail:
transport:
protocol: smtp
smtp:
auth: true
starttls:
enable: true
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://mysql:3306/support-portal