I'm writing an app which needs to post emails on behalf of users of our Google Apps Premier domain. I see there is a way to do this using the AppEngine Mail Service if you have the admin credentials. I want to know how to do this from a normal Java app running on say Tomcat.
+1
A:
App Engine is a platform. You can't use App Engine services without writing an app that runs on App Engine.
Nick Johnson
2010-08-31 16:10:40
I know. I was just using that as the example i.e. I want that similar functionality.
manu1001
2010-08-31 19:14:34
You say specifically that you want to do this "using the AppEngine Mail Service". Voting an answer down when it correctly answers the question you asked - as opposed to the question you meant to ask - is a bit unreasonable.
Nick Johnson
2010-09-01 09:52:21
No, I did not. Please read the entire sentence. I was saying, I found that the AppEngine has such a feature which I would like on my normal Java app. I only used the AppEngine example because anyone familiar with the Google Apps platform might easily understand what I want.And I don't think it's unfair to downvote such responses. At the end of the day, somebody looking to find an answer to this question would rather that this answer be at the bottom. Nothing personal.
manu1001
2010-09-01 16:35:05
Sending email from an app is a pretty standard thing to do in any language. Comparisons to App Engine specifically are pretty superfluous, and just add confusion.
Nick Johnson
2010-09-02 08:49:03
Yes, but if you read my post, the question is about sending an email from an app ON BEHALF OF A USER OF GOOGLE APPS; the latter part needing attention which justifies the AppEngine comparision.
manu1001
2010-09-03 08:38:32
+1
A:
I haven't done this, but if you have a Premier Apps domain then you should be able to enable and use oauth (you cannot with the free version) and follow these examples to send email on behalf of the users in your domain: http://code.google.com/apis/gmail/oauth/code.html if I understand your question correctly.
dar
2010-09-01 14:35:34