반송 알림 받기
bookmark_borderbookmark
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이메일 반송 알림을 받으려면 앱에서 반송 알림을 사용 설정하고 수신한 알림을 처리해야 합니다.
이메일 반송 알림을 받도록 애플리케이션 구성
기본적으로 애플리케이션은 전달할 수 없는 이메일에 대한 반송 알림을 받지 못합니다. 반송 알림 수신 서비스를 사용 설정하려면 애플리케이션 appengine-web.xml
및 web.xml
구성 파일을 수정해야 합니다.
반송 알림 수신 서비스를 사용 설정하도록 inbound-services
섹션을 추가하여 appengine-web.xml
을 수정합니다.
다음과 같이 반송 URL /_ah/bounce
를 반송 처리 서블릿에 매핑하여 web.xml
을 수정합니다.
반송 알림 처리
JavaMail API에는 다음과 같이 수신한 반송 알림을 파싱하는 데 사용되는 BounceNotificationParser 클래스가 포함되어 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-06(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-06(UTC)"],[[["To enable email bounce notifications, you must configure your application to receive them and handle them within your app."],["Enable the incoming bounce notification service by adding the `mail_bounce` service within the `inbound-services` section of your `appengine-web.xml` file."],["Map the bounce URL `/_ah/bounce` to your bounce handling servlet within your `web.xml` file to direct bounce notifications appropriately."],["Use the `BounceNotificationParser` class from the JavaMail API to parse incoming bounce notifications in your application."]]],[]]