Is there a bulk email plugin for Rails apps?

2019-02-02 13:53发布

Does anyone know of a plugin or something that can be used to send bulk emails for a Rails app?

Specifically, I'd like to be able to pass an HTML email file to a rake task or something and have it emailed out to everyone who has signed up to my site and checked the "please send me info about XXX" box.

I wrote kind of a hacked-together version for myself, but I'd like something that throttles itself somewhat smartly and can pick up where it left off if interrupted.

Update: I eventually broke down and got out my credit card and signed up for a real bulk email service, and damn was that the right choice. The resulting emails are very professional, they have built-in analytics, also integrate with Google Analytics, and it's awesome for a ton of other reasons.

If you're looking to do bulk emails with Rails, I would suggest using the Mailchimp service (here's my affiliate link that has a bonus on signup) along with the hominid gem. This will allow you to sync all your user emails from your database to Mailchimp, then use a real bulk service instead of some crappy patched together one.

Another Update: I heard about Maktoub today, and it's pretty much exactly what I was describing. Disclaimer: I have never used it and would still probably steer clear and go with a paid service, but it's still probably better than rolling you own.

6条回答
SAY GOODBYE
2楼-- · 2019-02-02 14:36

You might want to take a look at postageapp.com

查看更多
干净又极端
3楼-- · 2019-02-02 14:43

use ActionMailer(tutorial) (docs), it comes with Rails and you should be able to rig it to run from a rake task.

查看更多
smile是对你的礼貌
4楼-- · 2019-02-02 14:44

Not aware of any plugins for this and I don't know how rake could be used to do this, if at all.

Since you're using Rails, I assume you're using MySQL as your database so this may not be useful to you, but SQL Answers Mail for SQL Server sends bulk email directly from SQL Server. You could try searching for a tool that does something similar for the database you're using.

There's also a tutorial here and here on creating your own mailer.

查看更多
姐就是有狂的资本
5楼-- · 2019-02-02 14:47

There's a relatively new project called Maktoub which claims to be a Rails engine for email newsletters. I haven't tried it yet, but it looks promising.

查看更多
再贱就再见
6楼-- · 2019-02-02 14:49

I don't know that this is the kind of thing that can be covered by a plugin as there are whole sites/applications dedicated to this kind of thing. If you wanted to use one of those then there is www.campaignmonitor.com, it's pretty good and it has an api that you can hook into from your application.

查看更多
迷人小祖宗
7楼-- · 2019-02-02 14:49

I couldn't find one so I wrote it myself. It's not pretty (at this stage), but should serve as a good starting point for anyone with similar needs.

Please send me a pull request if you make any beneficial changes and I'll make sure to give you credit.

Mailcar - Ruby on Rails mass / bulk email plugin

Update - I highly recommend using a service. Rolling your own is a real pain and it will be difficult to manage once your list becomes reasonably large at all.

查看更多
登录 后发表回答