Fake SMTP 라이브러리 사용 이유
메일 서버가 운영에만 존재하여 로컬/개발 서버에서 메일 통신 여부를 확인 할 때 사용
1. 라이브러리 다운로드
fakeSMTP-2.0.jar 파일을 참고 사이트 2번에서 다운.(파일첨부)
참고 사이트
FakeSMTP – FakeSMTP - Dummy SMTP server for developers
Overview FakeSMTP is a Free Fake SMTP Server with GUI for testing emails in applications easily. It is written in Java. Configure your application to use "localhost" as your SMTP server, and all emails will be intercepted and displayed in this software. Fa
nilhcem.com
2. fakeSMTP GUI 실행 후 사용
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="localhost" />
<property name="port" value="2525" />
</bean>
5. GUI & 스프링의 포트가 연동된 후 메일 로직 실행 시 FAKE SMTP서버로 fake mail이 발송됨. 따라서 로컬, 개발서버에서 메일 발송 여부파악 가능
[ 웹개발 ] callback과 async await 의 차이 (0) | 2024.05.12 |
---|---|
[ Git ] 깃 저장소에 올릴 파일을 제외하는법 (.gitignore) (0) | 2024.05.11 |
[ 웹개발 기타 ] 오라클 서버 재기동 (Oracle Restart) (0) | 2024.04.03 |
[ 웹개발 기타 ] SSL 적용 (0) | 2024.03.15 |
[ 웹개발 기타 ] BFcache (0) | 2024.03.15 |