使用Google App Engine有效利用PHP发送大量电子邮件? [英] Effectively using Google App Engine to send lots of emails using PHP?

查看:169
本文介绍了使用Google App Engine有效利用PHP发送大量电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在MediaTemple上的网格服务器上有一个客户端网站,很快将被移动到虚拟专用服务器。目前,它正在使用一些黑客来涓流使用cron作业的大量电子邮件发送,并与数据库排队(以避免超过限制MediaTemple集合)。



我们无法使用第三方解决方案(如MailChimp等),因为价格对客户来说太多了(他的邮件列表中有75,000多人)。所以经过大量的研究,我发现使用Google App Engine作为基本上可扩展的方式发送大量的电子邮件是一个可行的选择。



他的网站使用PHP在这一刻。我最终想要使用Python / Django,但暂时没有...有一些我不太明白的东西...这样的东西,如应用程序叫做example.appspot.com,可以这样成为他网站上的子域名(如mailapp.example.com)?阅读Google App Engine上的用户指南后,应用程序使用的电子邮件地址似乎是应用程序的管理员(如admin@example.appspot.com)...必须这样做不可能像example@example.com那样吗?



我知道发送这么多电子邮件意味着我必须启用应用程序的计费。我知道有几个我可以发送的配额仍然存在。我甚至看到这个代码可以很容易地设置起来: http://github.com/tow / appengine-mailer



我最理想的是替换发送电子邮件的PHP代码(使用mail()等),并将其发送到Google App Engine代替。



有没有人成功完成了这样的设置?任何人都可以帮我拼出所需的步骤吗?或者为使用这样的系统提供任何陷阱?

解决方案

您的第一个问题:


$ b $这个应用程序名为
'example.appspot.com',可以在他的网站上使用
子域名(如
mailapp.example)。 com)?


是的,作为常见问题说:


Google应用程式引擎可以与
Google Apps一起使用,为您面向互联网的
应用程序(例如myapp.com)提供自定义域
名称。



默认情况下,当您在Google App Engine上部署
服务时,您的
服务将可通过
[your-application-id] .appspot.com访问。在
订单中,为您的应用程序提供更强大的品牌
体验,您可以通过
将该应用程序设为
在[我的品牌] .com或
www。[my-brand] .com。



为了为您的服务设置这些品牌的
访问位置,您必须证明
您拥有域
名称或通过Google购买域名
。 Google App Engine
允许您证明您的
域名的所有权,并使用Google Apps购买新的域名


您的第二个问题:


应用程序使用的电子邮件地址是
管理员(如
admin@example.appspot.com)...有
是这样的?它不可能是
像example@example.com?


当然可以使用Google用户名想要作为您的应用的管理员用户。


我知道发送这么多
电子邮件意味着我必须启用
计费应用程序。 I
了解
上仍有配额可以发送多少。


href =http://code.google.com/appengine/docs/billing.html =noreferrer>文档, $ 0.0001 每个收件人通过电子邮件发送。邮件列表中有75,000个人,每个发送给所有邮件的邮件是 $ 7.50 。根据这些其他文档,免费配额是每天2,000封电子邮件收件人,绝对最大值为7.4百万(也是限制速率,即每分钟有多少收件人的免费和最大配额)。


<我理想地想要替换发送电子邮件的PHP代码
(使用mail()
等),并使用Google
App Engine发送。


对不起,不能帮助你,我用Python运行App Engine,而不是PHP。但是我听说,栎树,可以在App Engine的JVM侧上运行PHP。


I currently have a client website on the Grid server on MediaTemple that will be moved to a Virtual Private Server soon. Currently it's using some hacks to trickle his massive email sendouts using cron jobs and queuing with the database (to avoid going over the limit MediaTemple set).

We can't use third party solutions (like MailChimp etc) as the price is just too much for the client to pay (he has 75,000+ people on his mailing list). So after lots of research, I've found that using Google App Engine as basically a scalable way to send out lots of emails is a viable option.

His site uses PHP at the moment. I do eventually want to use Python/Django, but not for the time being... There is a few things I don't quite understand... Such things as having the app called 'example.appspot.com', can this be a sub domain on his site (like mailapp.example.com)? After reading the user guide on Google App Engine it seems that the email address the app uses is an admin on the application (like admin@example.appspot.com)... that has to be that? It can't possibly be something like example@example.com?

I understand that sending out so many emails means I'll have to enable the billing on the application. I understand there is still a quota on how many I can send. I've even seen this code that could help set this up easily: http://github.com/tow/appengine-mailer

I ideally want to replace the PHP code where it sends out email (using mail() etc) and make it send out with Google App Engine instead.

Has anyone successfully done this sort of setup? Can anyone help me spell the steps required? Or provide any pitfalls to using such a system?

解决方案

Your first question:

having the app called 'example.appspot.com', can this be a sub domain on his site (like mailapp.example.com)?

Yes, as the FAQ say:

Google App Engine can be used with Google Apps to provide a custom domain name for your internet-facing application, e.g., myapp.com.

By default, when you deploy your service on Google App Engine, your service will be accessible at [your-application-id].appspot.com. In order to provide a stronger brand experience for your application, you may also want that application to be available at [my-brand].com or www.[my-brand].com.

In order to set up these branded access locations for your service, you must prove that you own the domain name or purchase the domain name through Google. Google App Engine allows you to prove ownership of your domain and purchase new domain names using Google Apps.

Your second question:

the email address the app uses is an admin on the application (like admin@example.appspot.com)... that has to be that? It can't possibly be something like example@example.com?

Sure, you can use the Google userids you want as your admin users for your apps.

I understand that sending out so many emails means I'll have to enable the billing on the application. I understand there is still a quota on how many I can send.

Yep, per the docs, $0.0001 per recipient emailed. With 75,000 people on the mailing list, that's $7.50 per mail sent to all of them. Per these other docs, the free quota is 2,000 recipients emailed per day, the absolute maximum is 7.4 millions (there also limits to the rate, i.e., how many recipients are mailed per minute in free and max quotas).

I ideally want to replace the PHP code where it sends out email (using mail() etc) and make it send out with Google App Engine instead.

Sorry, can't help you there, I run App Engine with Python, not PHP. But I hear that, with Quercus, it is possible to run PHP on the JVM "side" of App Engine.

这篇关于使用Google App Engine有效利用PHP发送大量电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆