Skip to content

Commit 310a984

Browse files
committed
fix[email]: 도메인 이메일로 인증 메일 발송 로직 수정
1 parent d473165 commit 310a984

File tree

5 files changed

+15
-112
lines changed

5 files changed

+15
-112
lines changed

backend/src/main/java/com/ai/lawyer/global/config/EmailConfig.java

Lines changed: 0 additions & 92 deletions
This file was deleted.

backend/src/main/java/com/ai/lawyer/global/email/service/EmailService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public void sendEmail(String toEmail, String title, String content) throws Messa
4848
helper.setSubject(title);
4949
helper.setText(content, true);
5050

51-
helper.setFrom(fromAddress, "TrybaLaw 인증시스템");
51+
helper.setFrom(fromAddress, "BaLaw 이메일 인증");
5252
helper.setReplyTo(fromAddress);
5353

54-
log.info("발신자: {} (표시 이름: TrybaLaw 인증시스템)", fromAddress);
54+
log.info("발신자: {} (표시 이름: BaLaw 이메일 인증)", fromAddress);
5555

5656
emailSender.send(message);
5757
}

backend/src/main/resources/application.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@ spring:
2020
enabled: always
2121

2222
mail:
23-
host: smtp.gmail.com
24-
port: 587
25-
username: ${email_address}
23+
host: smtp.daum.net
24+
port: 465
25+
username: ${send_email_address}
2626
password: ${send_email_password}
27-
from: ${send_email_address}
2827
properties:
2928
mail:
3029
smtp:
3130
auth: true
32-
starttls:
31+
ssl:
3332
enable: true
34-
required: true
3533
connectiontimeout: 5000
3634
timeout: 5000
3735
writetimeout: 5000
3836
auth-code-expiration-millis: 1800000
3937

38+
4039
ai:
4140
openai:
4241
api-key: ${OPENAI_API_KEY}

backend/src/test/resources/application-test-ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ spring:
2222
highlight_sql: true
2323

2424
mail:
25-
host: smtp.gmail.com
26-
port: 587
27-
username: ${email_address}
25+
host: smtp.daum.net
26+
port: 465
27+
username: ${send_email_address}
2828
password: ${send_email_password}
29-
from: ${send_email_address}
3029
properties:
3130
mail:
3231
smtp:
3332
auth: true
34-
starttls:
33+
ssl:
3534
enable: true
36-
required: true
3735
connectiontimeout: 5000
3836
timeout: 5000
3937
writetimeout: 5000

backend/src/test/resources/application-test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ spring:
2222
highlight_sql: true
2323

2424
mail:
25-
host: smtp.gmail.com
26-
port: 587
27-
username: ${email_address}
25+
host: smtp.daum.net
26+
port: 465
27+
username: ${send_email_address}
2828
password: ${send_email_password}
29-
from: ${send_email_address}
3029
properties:
3130
mail:
3231
smtp:
3332
auth: true
34-
starttls:
33+
ssl:
3534
enable: true
36-
required: true
3735
connectiontimeout: 5000
3836
timeout: 5000
3937
writetimeout: 5000

0 commit comments

Comments
 (0)