Module: Mailee

Defined in:
lib/mailee/active_record.rb,
lib/mailee.rb,
lib/mailee/action_mailer.rb,
lib/mailee/active_resource.rb

Overview

The Sync module is responsible for keeping a model syncd with Mailee. It’s behaviour is still too rails-twooish. But soon I’ll make it more treeish using Railties and stuff. But it works.

All you need in your model are two fields, one for the email and one for the optin, wich is by default called “news”. The name field is optional but encouraged.

USAGE

# Simple example
class Client < ActiveRecord::Base
  sync_with_mailee
end

# Super hyper brainfuck complex example
class Client < ActiveRecord::Base
  sync_with_mailee :email => :email_field, :name => :name_field, :news => :news_field
end

Defined Under Namespace

Modules: Send, Sync Classes: Config, Contact, List, Mailer, Message, Quick, Report, Template