1

很快我将启动我的新网站,我计划使用 gmail 作为电子邮件服务器来处理注册和丢失密码等问题。

我将使用谷歌应用程序(免费版),所以我可以拥有 admin@mydomain.com。

除了每天 500 次的限制外,使用 gmail 进行这项服务还有其他潜在问题吗?

4

4 回答 4

2

2 年我使用 gmail 应用程序 + phpmailer,从来没有遇到过问题(除了你提到的 500 限制)。

发送电子邮件(根据我的经验)不超过 1-2 秒;请记住在端口 465 上使用 ssl。

而且我的任何电子邮件都没有被视为垃圾邮件

于 2010-03-19T15:02:25.240 回答
1

是的,SSL 连接非常慢。发送一封电子邮件大约需要 10 秒。我使用 Google Apps,但我只偶尔发送新用户和忘记密码电子邮件,所以还不错。

于 2010-03-19T14:25:27.297 回答
1

使用谷歌应用引擎而不是通过 gmail 发送邮件

我没有使用 gmail 和 PHPMailer,但我不认为这是愚蠢的。但是如果你问我你最好使用谷歌应用引擎来发送电子邮件。我意识到这不是一个 php 解决方案,但我认为要实现您想要的谷歌应用程序引擎文档将符合您的要求。这样,您就不会对您施加硬限制,并且它可以很好地扩展。

PS:Google 有一个非常慷慨的每日免费 配额
    Mail API Calls 7,000 个调用,32 个调用/分钟

了解将应用程序部署到谷歌应用引擎的基础知识

还有一段来自 Slatkin 的youtube 视频(<10 分钟),用于学习将应用程序部署到 Google App 引擎的基础知识。当我看到这个视频时,我被应用引擎和 python 的力量所吸引。

通过 Python 的应用引擎 SDK 发送电子邮件

在这里你会发现我直接从那里的文档中复制的一个小片段。

from google.appengine.api import mail

mail.send_mail(sender="Example.com Support <support@example.com>",
              to="Albert Johnson <Albert.Johnson@example.com>",
              subject="Your account has been approved",
              body="""
Dear Albert:

Your example.com account has been approved.  You can now visit
http://www.example.com/ and sign in using your Google Account to
access new features.

Please let us know if you have any questions.

The example.com Team
""")
于 2010-03-19T19:11:36.150 回答
0

当然。我们通过 Gmail / Google Apps 服务发送,它对我们来说效果很好。

于 2010-03-19T19:13:18.403 回答