3

参考以下关于在 Google App Engine 中发送电子邮件的文档: https ://developers.google.com/appengine/docs/python/mail/sendingmail

它表示电子邮件发件人(即发件人地址)可能是: 域帐户的任何有效电子邮件接收地址,例如 support@example.com。域帐户是 Google 域之外的帐户,其电子邮件地址不以 @gmail.com 或 @APP-ID.appspotmail.com 结尾。

这似乎意味着只要我的域 mycompany.com 是 Google Apps 域并且我已将其作为服务添加到我的 Google Apps CPanel 中,我就可以从任意地址发送电子邮件,而不是现有用户,例如:whatever@mycompany.com。请注意,我没有将应用的身份验证类型设置为“Google Apps Domain”,而是设置为“Google Accounts API”。

但是,这不是这样工作的。只有当它是现有的 Google Apps 用户并以管理员身份在应用程序中注册时,我才能发送电子邮件。

请说清楚。谢谢。

4

1 回答 1

2

You should continue reading right after the sentence you quoted:

Any valid email receiving address of a domain account, such as support@example.com. Domain accounts are accounts outside of the Google domain with email addresses that do not end in @gmail.com or @APP-ID.appspotmail.com. To send an email from an existing domain account, add the domain account as a Developer to your application using the Administration Console. The account is then sent an email with an invite to develop the application, which you must accept to add the account to the application.

So you still need to add the domain user under GAE Admin -> Permissions.

于 2013-02-06T02:13:43.597 回答