메일 전송시 에러
- 작성자 :
- 장*원
- 작성일 :
- 2013-12-26 21:21:10
- 조회수 :
- 979
- 구분 :
- 공통컴포넌트
- 진행상태 :
- 완료
Q
아래와 같이 에러가 발생합니다.
어떻게 처리하나요?
<!-- 메일 연동 인터페이스에서 첨부파일 사용 -->
<bean id="egovMultiPartEmail"
class="egovframework.com.cop.ems.service.EgovMultiPartEmail"
p:host="mail.gntp.or.kr"
p:port="587"
p:id="******"
p:password="******"
p:senderName="System"
p:emailAddress="****@****.or.kr" />
2013-12-26 21:17:36,875 ERROR [java.lang.Class] Sending Mail Exception : javax.mail.AuthenticationFailedException [unknown Exception]
org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail.gntp.or.kr:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
at org.apache.commons.mail.Email.send(Email.java:1267)
at egovframework.com.cop.ems.service.EgovMultiPartEmail.send(EgovMultiPartEmail.java:134)
at egovframework.com.cop.ems.service.EgovMultiPartEmail.send(EgovMultiPartEmail.java:103)
at egovframework.com.cop.ems.service.impl.EgovSndngMailServiceImpl.sndngMail(EgovSndngMailServiceImpl.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
어떻게 처리하나요?
<!-- 메일 연동 인터페이스에서 첨부파일 사용 -->
<bean id="egovMultiPartEmail"
class="egovframework.com.cop.ems.service.EgovMultiPartEmail"
p:host="mail.gntp.or.kr"
p:port="587"
p:id="******"
p:password="******"
p:senderName="System"
p:emailAddress="****@****.or.kr" />
2013-12-26 21:17:36,875 ERROR [java.lang.Class] Sending Mail Exception : javax.mail.AuthenticationFailedException [unknown Exception]
org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail.gntp.or.kr:587
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)
at org.apache.commons.mail.Email.send(Email.java:1267)
at egovframework.com.cop.ems.service.EgovMultiPartEmail.send(EgovMultiPartEmail.java:134)
at egovframework.com.cop.ems.service.EgovMultiPartEmail.send(EgovMultiPartEmail.java:103)
at egovframework.com.cop.ems.service.impl.EgovSndngMailServiceImpl.sndngMail(EgovSndngMailServiceImpl.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
A
안녕하세요. 장진원님.
mail.gntp.or.kr 의 587 port가 정상적으로 연결되는지 확인해 보셔야 할 것 같습니다.
해당 서버에 정상적으로 SMTP 서비스가 되는지도 확인 해보시구요.
그럼, 즐거운 하루되십시오.
감사합니다.
mail.gntp.or.kr 의 587 port가 정상적으로 연결되는지 확인해 보셔야 할 것 같습니다.
해당 서버에 정상적으로 SMTP 서비스가 되는지도 확인 해보시구요.
그럼, 즐거운 하루되십시오.
감사합니다.