从 Google App Engine 发送电子邮件

发布于 2024-07-20 15:27:04 字数 348 浏览 5 评论 0原文

我有一个带有 Django 的 Web 服务器,由 Apache 服务器托管。 我想为电子邮件服务器配置 Google App Engine。 当我的网络服务器使用 EmailMessage 或 Google Mail API 的 sendmail 基础设施发送任何电子邮件时,它应该能够使用 Google App Engine。

我了解到,通过使用远程 API,我可以从我的主 Web 服务器访问 Google App Engine 服务器。 但是,我无法访问 Google App Engine 支持的邮件 API。

远程 API 是否严格用于数据存储? 如果是这样,那么只有数据库可以从中读取而其他 API 调用不能吗?

I have a web server with Django, hosted with Apache server. I would like to configure Google App Engine for the email server. My web server should be able to use Google App Engine, when it makes any email send using EmailMessage or sendmail infrastructure of Google Mail API.

I learnt that by using Remote API, I can access Google App Engine server from my main web server. However, I could not access the Mail APIs supported by Google App Engine.

Is the Remote API strictly for Datastore? If so, can only the DB read from it and no other API calls can?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

躲猫猫 2024-07-27 15:27:04

远程 APi 的示例代码为您提供了一个交互式控制台,您可以从中访问应用程序中的任何模块。 我认为没有要求它们只是数据存储操作。

The example code for the remote APi gives you an interactive console from which you can access any of the modules in your application. I see no requirement that they be only datastore operations.

咽泪装欢 2024-07-27 15:27:04

您可能想要使用第三方 SMTP 中继服务。 这里有一个列表

他们中的大多数都有一个简单的 API,可让您将电子邮件转发到他们的服务。 这样,您就不会受到 AppEngine 的限制。 信誉较好的应用程序还会处理必要的标头,以便您的应用程序不会被标记为垃圾邮件发件人(希望它不是:-)

You may want to use a third-party SMTP relaying service. Here's a list.

Most of them have a simple API that lets you forward your email to their service. That way, you're not bound by the AppEngine's limits. The more reputable ones also take care of headers necessary so your app isn't tagged as a spam sender (which hopefully, it isn't :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文