Skip to content

Commit

Permalink
fix: email 주소 local -> 백 서버
Browse files Browse the repository at this point in the history
  • Loading branch information
jeong011010 committed Oct 18, 2024
1 parent db6625a commit 8998b70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void sendVerificationEmail(String recipientEmail) {
String token = generateEmailVerificationToken(recipientEmail);

String subject = "이메일 인증을 완료해주세요";
String verificationUrl = "http://localhost:8080/api/v1/auth/verify-email?token=" + token;
String verificationUrl = "http://dev.chekirout.com/api/v1/auth/verify-email?token=" + token;
String message = "아래 링크를 클릭하여 이메일 인증을 완료하세요: <a href='" + verificationUrl + "'>인증 링크</a>";

try {
Expand All @@ -44,7 +44,7 @@ public void sendVerificationEmail(String recipientEmail) {
helper.setTo(recipientEmail); // 수신자 이메일 설정
helper.setSubject(subject); // 이메일 제목 설정
helper.setText(message, true); // HTML 형식으로 본문 설정
helper.setFrom("chekirout");
helper.setFrom("chekirout <[email protected]>");

mailSender.send(email); // 이메일 전송
} catch (Exception e) {
Expand Down

0 comments on commit 8998b70

Please sign in to comment.