Actually, I was just able to "receive an email”.
Although being on Node.js, I followed part of the Python guide, which also uses app.yaml as a configuration file. See
here.I had to add this to my app.yaml file:
inbound_services:
- mail
Then, as the guide says, you can receive mails to <anystring>@<app-id>.
appspotmail.com .
Instead of configuring script handlers in app.yaml I just used express:
console.log(‘Got email’);
});
Have not checked how to parse the request and if the email body is delivered or not.
Of course there’s no Node.js client provided as for Python for example.
I won’t be using this since it is not documented and, in the end, not worth it as is.
So, to Google Developers: I think you should either remove mail delivery for node.js apps, or document this behavior.
Possibly document and provide a Mail API for node folks too! :-)