Skip to content

Commit

Permalink
chore: checkstyle 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
donghyun0304 committed Apr 4, 2024
1 parent 7a1ebe9 commit 0fafdce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/example/demo/domain/EmailSenderImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ public class EmailSenderImpl implements EmailSender {
private JavaMailSender mailSender;

@Value("${mail.from}")
private String EMAIL_FROM;
private String mailFrom;

@Override
public void sendSimpleMessage(String to, String subject, String text) {
SimpleMailMessage message = new SimpleMailMessage();
//setFrom에 들어가는 이메일 주소는 실제 발송 주소와 관련이 없다.
// Note that even though it’s not mandatory to provide the from address, many SMTP servers would reject such messages.
message.setFrom(EMAIL_FROM);
message.setFrom(mailFrom);
message.setTo(to);
message.setSubject(subject);
message.setText(text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ private MemberImpl findMemberById(Long memberId) {
return memberRepository.findById(memberId)
.orElseThrow(() -> new CafegoryException(MEMBER_NOT_FOUND));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ void sendSimpleMessage() {
emailSender.sendSimpleMessage("[email protected]", "테스트 제목", "테스트 내용");
}

}
}

0 comments on commit 0fafdce

Please sign in to comment.