【问题标题】:GAE: Send email from any arbitrary email address in Google Apps domainGAE:从 Google Apps 域中的任意电子邮件地址发送电子邮件
【发布时间】:2013-01-20 16:49:51
【问题描述】:

请参阅以下有关在 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 个表示它未注册。
  • 底线,我不想创建另一个 Google Apps 用户只是为了从“donotreply@mycompany.com”发送电子邮件。我想我可能需要将 AWS SES 与 Boto 结合使用才能获得这种灵活性。
  • 您不必将其注册为管理员。您可以使用查看者角色。
  • 我的意思是我不想为了发送电子邮件而创建一个 Google Apps 用户(无论它注册为什么角色)。

标签: google-app-engine


【解决方案1】:

你应该在你引用的句子之后继续阅读:

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.

所以你仍然需要在 GAE Admin -> Permissions 下添加域用户。

【讨论】:

    猜你喜欢
    • 2011-12-14
    • 1970-01-01
    • 2018-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多