No commit activity in last 3 years
No release in over 3 years
Sync user emails with MailChimp mailing lists
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.2.0
>= 3.0.0
 Project Readme

USAGE:¶ ↑

class User < ActiveRecord::Base
  subscribe_to "List Name", :using => { :api_key => MAILCHIMP_API_KEY,
                                        :email => :email, 
                                        :fields => {:FNAME => :first_name, :LNAME => :last_name}}
end

When User is saved, it will be added to your MailChimp list “List Name”.

This assumes that you have @user.email, @user.first_name, @user.last_name setup as your models attributes. MailChimp expects FNAME, and LNAME, you can also specify any custom fields and they will be captured.

When User is deleted it will automatically be unsubscribed from “List Name”.

REQUIREMENTS:¶ ↑

  • hominid gem

INSTALL:¶ ↑

gem 'hominid'
gem 'mailchimp_subscriber'

LICENSE:¶ ↑

BSD License