I am using devise and the gibbon gem to have users sign up for my site. The gibbon gem works in that the user is added to the list on mailchimp, but they are not sent a confirmation email, which, according to the documentation, I believe my code should do. Here is the relevant code:
class User < ActiveRecord::Base
before_create :do_mailchimp
def do_mailchimp
gb = Gibbon::API.new("my_api_key")
gb.lists.subscribe({:id => 'my_mailchimp_id',
:email => {:email => self.email }, :merge_vars => {:WHAT_ARE_Y => self.type},
:double_optin => false})
end
How do I get it to send the confirmation email?