Lukas Lukas - 9 months ago 57
Java Question

How to get google app engine admin mail address?

Is there a way in Google App Engine (Java) to get the the email address of the admin that is allowed to send mails without hardcoding it somewhere?

Currently I use the Java System property in the appengine-web.xml. Something like the uploader of the app would be fine, too.

Background of this question: I create an app that students have to clone in their own GAE instance. Hence the cloning effort should be minimized as much as possible.

Answer Source

I believe what you are looking for is the way to figure out the email id that is valid to send out mail from. You can figure out the appid dynamically using the App Identity API and construct the sender email id dynamically.

Once you have the appid you can construct the email id as where 'string' can be anything and 'appid' is the appid you got from the Identity API.