Skip to content

Conversation

@dnjstjt1297
Copy link
Member

📌 작업 개요

  • 깃 레포 이메일 등록 오류 수정
  • 딜리트 매핑으로 변경

✨ 기타 참고 사항

  • 깃 레포 이메일 등록 오류 수정
  • 딜리트 매핑으로 변경

🔗 관련 이슈


if (Objects.nonNull(email)) {
String trimmed = email.trim();
if (!trimmed.isEmpty() && !EMAIL_PATTERN.matcher(trimmed).matches()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

만약에 이메일 패턴은 통과했는데 해당 이메일이 존재하지 않으면 어디서 에러를 잡는지 궁금합니다~

Copy link
Member Author

Choose a reason for hiding this comment

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

현재 코드에서 EMAIL_PATTERN은 문자열이 이메일 형식에 맞는지만 검증합니다. 즉, 정규식 검증을 통과한다고 해서 실제 존재하는 이메일이라는 보장은 없습니다.

그래서 SMTP ping 또는 인증 메일 전송 등으로 유효성을 확인해야 합니다.

SMTP 핑은 DNS 조회로 메일 서버 존재 확인 후 RCPT TO 명령으로 존재 여부를 탐색하지만 대부분 메일 서버가 거부하고
가장확실한 방법은 인증 메일 전송으로 유효성을 체크하는 것인데 아직 구현하지 않았습니다.

@dnjstjt1297 dnjstjt1297 merged commit 065ca1d into dev May 16, 2025
1 check passed
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.

[fix] 깃허브 레포 오류 수정

4 participants