Receiving Bounce Notification
Stay organized with collections
Save and categorize content based on your preferences.
In order to receive email bounce notifications, you need to configure
your app to enable email notification and you need to create a handler
to handle those notifications.
Configuring Your App to Receive Bounce
Notifications
There are two parts to the configuration. First, you need to enable
notification. Second, you need to set the mapping between
/_ah/bounce
and your bounce handler, so App Engine knows where to
POST the notification data. To configure your app to receive bounced email
notifications:
- Add the following to your
app.yaml
file to enable notification:
inbound_services:
- mail_bounce
- Also in
app.yaml
, declare a mapping between
/_ah/bounce
and the bounce notification handler in your code, for
example:
- url: /_ah/bounce
script: _go_app
login: admin
Handling Bounce Notifications
In your app, you'll need to supply bounce handler code to receive and
process the notifications.
The bounce notification will be sent to your app as a POST request to
/_ah/bounce
. Information about the bounce will be form-encoded in
the body of the request.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["To get email bounce notifications, you must enable email notifications in your app and create a handler for them."],["Enable bounce notifications in your `app.yaml` file by adding `inbound_services: - mail_bounce`."],["In `app.yaml`, map `/_ah/bounce` to your bounce handler, specifying where to POST notification data."],["Your bounce handler will receive POST requests to `/_ah/bounce`, containing form-encoded bounce information."]]],[]]