我的appengine应用程序如何使用安装该应用程序的域的senderid发送邮件 [英] How can my appengine app send mail using the senderid of domain that installed the app
问题描述
现在,我想把这个服务卖给blah.com。 blah.com有一个谷歌应用程序帐户,'增加'foo应用程序并设置网址 http://foo.blah.com 指向它。
现在,使用新的名称空间管理器,我为blah.com创建单独的数据,但是当blah.com想发送电子邮件目前唯一可能的方式是要么
- 发件人是admin即adminfoo(at)gmail.com
有没有其他方法?如果有1000名顾客,会发生什么情况?
此外,该文档声明电子邮件发件人可以是当前登录的用户。因此,如果blah.com上的某个用户使用Google登录名登录并且保持登录状态,那么该应用程序可以通过blah.com与某人(at)blah .com是发件人吗?
另一种方式是,您的应用程序可以发送电子邮件为anything@appid.appspotmail.com, 'appid'是其App ID。正如您所说,您还可以以登录用户的身份发送电子邮件 - 但仅限于该用户发出的请求 - 因此,从任务队列发送邮件时不会发送。
Say I have an appengine app called foo at foo.appspot.com and my email i.e. adminfoo(at)gmail.com is it's adminstrator.
Now, I want to sell this service to blah.com. blah.com has a google app account and 'adds' the foo application and sets the url http://foo.blah.com to point to it.
Now, using the new namespace manager, I carve out separate data for blah.com but when blah.com wants to send out email currently the only way it is possible is either
- sender is admin i.e. adminfoo (at) gmail.com
- or foo.appspot.com has to add someone(@)blah.com as a developer
Is there any other way? What happens if one has 1,000's of customers ?
Also, the docs state that the email sender can be 'the currently logged in user'. So, if someone(at)blah.com were to 'login' using the google login and 'stay logged in to the app' than can the app send email on behalf of someone(at)blah.com with someone(at)blah.com being the sender?
The other way is that your app can send email as anything@appid.appspotmail.com, where 'appid' is its App ID. As you say, you can also send email as the logged in user - but only on requests made by that user - so sending mail as them from the Task Queue is out.
这篇关于我的appengine应用程序如何使用安装该应用程序的域的senderid发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!