Skip to content

Conversation

@Uralauah
Copy link
Contributor

MailService 수정

📝 개요

MailService를 수정하였습니다.


⚙️ 구현 내용

기존에 메일을 전송하는 템플릿을 받을 때
String htmlContent = Files.readString(resource.getFile().toPath(), StandardCharsets.UTF_8);와 같이 했지만
resource.getFile()은 일부 환경 (JAR로 빌드된 배포 환경)에서 FileNotFoundException이 발생할 수 있다.
따라서 String htmlContent = new String(resource.getInputStream().readAllBytes(), StandardCharsets.UTF_8);와 같은 방식으로 수정함.


@Uralauah Uralauah merged commit 91b85fc into develop Mar 29, 2025
1 check passed
@Uralauah Uralauah deleted the refact/mail branch March 29, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants