Skip to content

Commit e0b78e3

Browse files
committed
feat: java-mail-sender 의존성 주입 및 yml 수정
1 parent 5c0587d commit e0b78e3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ dependencies {
4747

4848
//.env
4949
implementation 'io.github.cdimascio:java-dotenv:5.2.2'
50+
51+
// email
52+
implementation 'org.springframework.boot:spring-boot-starter-mail'
5053
}
5154

5255
dependencyManagement {

src/main/resources/application.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ spring:
2727
gcp:
2828
credentials:
2929
location: ${GOOGLE_APPLICATION_CREDENTIALS}
30+
mail:
31+
host: smtp.gmail.com
32+
port: 587
33+
username: ${MAIL_USERNAME}
34+
password: ${MAIL_PASSWORD}
35+
properties:
36+
mail:
37+
smtp:
38+
auth: true
39+
timeout: 5000
40+
ssl: false
41+
starttls:
42+
enable: true
43+
required: true
3044

3145
ai:
3246
gemini:

0 commit comments

Comments
 (0)