Skip to content
An ActionMailer integration to Contactology transactional campaigns
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.markdown
Rakefile
contactology-mailer.gemspec

README.markdown

Contactology::Mailer

This library provides an ActionMailer-based hook into sending transactional campaigns through Contactology.

Example

    # config/initializers/contactology.rb
    Contactology.key = 'MyContactologyApiKey'

    # app/mailers/user_mailer.rb
    class UserMailer < Contactology::Mailer
      def welcome(user)
        # Sets the transactional campaign recipients
        recipients user.email

        # Sets the "replacements" for the campaign
        body :user_name => user.name, :email => user.email
      end
    end

    # Sends via a Contactology "welcome" transaction campaign.
    # The "welcome" campaign would be created through another means.
    UserMailer.deliver_welcome(User.first)

Installation

Installation is done through Rubygems with gem install contactology-mailer.

More information

Something went wrong with that request. Please try again.