Email sent to addresses of the following forms are routed to the default version of the app:
The HTTP request uses the POST action, and is sent to the following URL path:
The recipient email address of the message is included at the end of the URL path, so the app can distinguish between different values of “anything.”
The body content of the HTTP POST request is the complete MIME email message, including the mail headers and body. It can be parsed by any library capable of parsing MIME email messages. We’ll look at examples in Python and Java in the next two sections.
The development server console
http://localhost:8080/_ah/admin/) includes a feature for
simulating incoming email by submitting a web form. The development server
cannot receive actual email messages.
If the app has the incoming mail service enabled but does not have a request handler for the appropriate URL, or if the request handler returns an HTTP response code other than 200 for the request, the message gets “bounced” and the sender receives an error email message.
To receive email in Python, you map the incoming email URL path to a script handler in app.yaml file:
handlers: - url: /_ah/mail/.+ ...