Skip to content

Conversation

@hodoon
Copy link
Collaborator

@hodoon hodoon commented Aug 18, 2025

[refactor] 이메일 발송 비동기식으로 전환

Issue

변경 내용

  • 이메일 발송 비동기식으로 전환
  • 로컬 테스트 확인

체크리스트

  • 커밋 메시지가 컨벤션을 따르는가?
  • 로컬에서 빌드가 성공하는가?

테스트

  • 로컬에서 테스트 완료
  • 기존 기능에 영향 없음 확인
  • 다양한 브라우저에서 테스트 (필요시)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Member

@dohy-eon dohy-eon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고 많으셨습니다!

지금 getSubject, getEmailContent, getButtonText 메서드 전부 다 switch문인데 enum 파서 처리하는게 훨씬 가독성도 올라가고 유지보수가 쉬워질 것 같습니다.

[ 권장 수정 방안 ]

public enum MailTemplate {
    DOCUMENT_RESULT("동양미래대 서류 결과 안내", "서류 결과 확인하기"),
    FINAL_RESULT("동양미래대 최종 결과 안내", "최종 결과 확인하기");

    private final String subject;
    private final String buttonText;
    + emailContent까지
}
  • 추가로 제안사항인데 이전 기수 모집 때 이메일 발송오류 처리때문에 잠깐 혼란이 있었었는데 백에서 로그 테이블 따로 파서 전송 대상 이메일이랑 실패 사유 같은거 정리하면 좋지 않을까? 라는 생각이 있었습니다,, 고려해주시면 감사하겠습니다.

Copy link
Member

@dohy-eon dohy-eon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다!

@hodoon hodoon merged commit adab570 into dev Aug 19, 2025
1 check passed
@hodoon hodoon deleted the refactor/DASOMBE-13-email-send branch August 19, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants