简体   繁体   中英

Laravel Newsletter Email System

我看过一个有关如何使用Laravel 4的iron.io使用第三方插件来做新闻通讯系统的教程。要使用排队消息系统,您必须每月向他们支付服务费,我的问题是使用第三方插件,或者我可以简单地使用Mail :: queue()命令对每个订阅者立即执行操作(是否足以完成此工作)。

First I think that iron.io has a free plan ... check "Lite (Free)" on iron.io/pricing/

Now, regarding to plugins, - no, you do not need to use third party plugins. Laravel is made to work with different queue types. I have made newsletter system using mandrill in production with beanstalkd. But in my local env I do not have beanstalkd so I am using another configuration.

You can have different configurations for different env ... you can put production configuration for queues in

app/config/queue.php

and your local dev env configuration in

app/config/localdev/queue.php

where "localdev" should be replaced with your env name.

In production you can using " beanstalkd " and in local env you can use " sync ".

Here you have article with examples how to setup Beanstalkd: Production-Ready Beanstalkd with Laravel 4 Queues

When you configure beanstald then "Mail::queue" should work.

Anyway, if you plan to develop newsletter system I recommend you to check mandrill or mailgun. mandrill is cheaper for large volume eemails (More than 40.000 monthly), mailgun gives you 10.000 emails free each month.

I have created demo project on php-laravel5-newsletter-demo and soon I will finish basic example to have newsletter working with mandrill and mailgu8n.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM