Update I finally bit the bullet and went with Mailchimp. It was a great decision and it’s worth every penny. I’ll leave the original post up in case it’s useful to others.
In a nutshell, mailcar makes it (a little) easier to send a mass emails from your Rails app.
Newsletters, feature updates, or God forbid, security breach notices all require sending potentially thousands of emails. There are plenty of service providers who will do it for a fee, but if you’re a small-ish site run by stingy admins (like Obsidian Portal), then you don’t want to drop $100 every time you announce a new feature.
Mailcar is my attempt at simplifying this process a little and making it slightly fault tolerant. You can initiate a mass mailing, let it run for a while, stop it, resume it, and generally not worry about double (or infinite) sends or getting irreversibly interrupted.
In it’s current state (0.1) it does not work out of the box. You’ll need to edit the code directly to insert your own ActionMailer model, and add a function for extracting the list of email addresses. There’s probably other stuff too. I still wanted to post it because it’s a good starting point and the code is very simple, so you should have no trouble finding where to make modifications.
If anyone finds this plugin useful, please take a moment to refactor it and make it more reusable. Send me a pull request or a patch and I’ll put your name in the credits. Hopefully we can get it to a works-out-of-the-box state.
One final warning: sending thousands of emails without knowing what you’re doing will almost certainly land you on a spam blacklist. Double and triple check that your SMTP server is set up correctly with RDNS, SPF, HELO, and other acronyms that I don’t know. Don’t ask me about it because I don’t know. I’d just rather roll the dice on getting blacklisted than pay the bulk sender fees.
November 28th, 2009 at 8:35 am
I’ve got a good alternative for you: http://www.postageapp.com
It’s easy to start and you don’t have to deal with background jobs and queues plus you have some cool reporting tools – great to track what actually got sent.
Here’s an introduction:
http://blog.postageapp.com/2009/11/easy-mass-mailing-for-ruby-on-rails/
And here’s a sample app to help get started:
http://blog.postageapp.com/2009/11/rails-example-app/
March 19th, 2010 at 8:44 am
Jack your solution only supports 500 mails per day. Please mention that since you are spamming every site that talks about mass mails with rails. I’ve now read your same post on 20+ sites and no where do you mention the limits.
Thank you for mailcar, we will give it a shot.
March 28th, 2010 at 7:19 am
Hi i am also having same problem…plz reply..how to increase send mails capacity 500 to more in postage app
March 29th, 2010 at 8:00 am
Hi Shyam, thank you for your interest.
PostageApp is currently on free beta and we do not have limits on sending (Checkout http://blog.postageapp.com/2010/01/our-future-plans/).
We’ve had lots of great feedback from everyone and we’re fine-tuning the service. There are many users sending a more than 500 messages/day, so you’re welcome to try it out and send as many as you need.
July 14th, 2010 at 2:17 pm
Hi,
Try Hyper Mail from http://www.youmail.50webs.com