Reputation: 5859
I've seen a tutorial on how to do a newsletter system with a third party plugin using iron.io for Laravel 4. To be able to use the queuing messaging system you have to pay them a monthly service, my question is it necessary to use the third party plugin or can I just simply use the Mail::queue() command to perform the operations at once for each subscriber(is it sufficient enough to do the job).
Upvotes: 0
Views: 2631
Reputation: 6091
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.
Upvotes: 1