バウンス通知の受信
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
メールのバウンス通知を受信するには、アプリでバウンス通知を有効に構成する必要があります。受信した通知は、アプリで処理する必要があります。
アプリケーションでメールのバウンス通知を構成する
デフォルトでは、アプリは配信できなかったメールのバウンス通知を受信しません。着信バウンス通知サービスを有効にするには、アプリケーションの appengine-web.xml
構成ファイルと web.xml
構成ファイルを変更する必要があります。
inbound-services
セクションを追加して appengine-web.xml
を変更し、受信バウンス サービスを有効にします。
次のように、バウンス URL /_ah/bounce
をバウンス処理サービスに関連付け、web.xml
を変更します。
バウンス通知の処理
JavaMail API には BounceNotificationParser クラスが含まれています。このクラスを使うと、以下に示すように受信バウンス通知を解析できます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-13 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-13 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."]]],[]]