将 gmail 与 PHPMailer 一起使用是愚蠢的吗?

发布于 2024-08-25 17:47:01 字数 297 浏览 6 评论 0原文

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

我将使用 Google Apps(免费版),这样我就可以[电子邮件受保护]< /a>.

除了每天 500 封的限制之外,使用 Gmail 提供此服务是否还有其他潜在问题?

Soon I'll be launching my new site and i was planning on using gmail as the email server for things like registration and lost password.

I'll be using google apps (free version) so I can have [email protected].

Besides the 500/day limit are there any other potential problems with using gmail for this service?

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

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

发布评论

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

评论(4

裸钻 2024-09-01 17:47:01

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

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

我的电子邮件中没有一封被作为垃圾邮件出售

2 Years im using gmail apps + phpmailer, never had a problem (except the 500 limit as you mentioned).

Emails take (on my experience) not more than 1-2 seconds to be sent; Just remember to use ssl on port 465.

And noone of my emails is been market as a SPAM

简单 2024-09-01 17:47:01

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

Yes, SSL connections are slow as hell. Sending one email takes ~10 seconds. I use Google Apps, but I only send out the occasional New User and Forgot Password emails, so it's not that bad.

ぇ气 2024-09-01 17:47:01

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

我没有将 gmail 与 PHPMailer 一起使用过,但我不认为这是愚蠢的。但如果您问我,您最好使用 Google App Engine 发送电子邮件。我意识到这不是一个 php 解决方案,但我认为要实现您想要的目标,谷歌应用程序引擎文档将适合您的要求。这样你就不会受到硬性限制,并且可以很好地扩展。

PS:Google 有非常慷慨的免费日报
配额

   邮件 API 调用 7,000 次调用,32
通话/分钟

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

还有一点来自 Slatkin 的 YouTube 视频(<10 分钟),用于了解将应用部署到 Google App 引擎的基础知识。当我看到这个视频时,我被 App Engine 和 Python 的力量所吸引。

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

在这里您将找到我直接从文档中复制的一个小片段。

from google.appengine.api import mail

mail.send_mail(sender="Example.com Support <[email protected]>",
              to="Albert Johnson <[email protected]>",
              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
""")

Using google app engine instead of sending mail via gmail

I haven't used gmail with PHPMailer, but I don't think it is foolish. But if you ask me you are better of using google app engine to send emails. I realize this isn't a php solution, but I think to achieve what you want the google app engine documentation will fit your bill. That way you don't have the hard limit enforced on you and it scales very well.

P.S: Google has a very generous free daily
quota:

    Mail API Calls 7,000 calls, 32
calls/minute

Learn basics of deploying an application to google app engine

Also a little youtube video from Slatkin(<10 minutes) to learn the basics of deploying a app to Google App engine. When I saw this video I was sold to the power of app engine and python.

Send email via Python's app engine SDK

Here you will find a little snippet which I directly copied from there documentation.

from google.appengine.api import mail

mail.send_mail(sender="Example.com Support <[email protected]>",
              to="Albert Johnson <[email protected]>",
              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
""")
在风中等你 2024-09-01 17:47:01

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

Sure. We send through Gmail / Google Apps service and it has worked fine for us.

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