Sha256: 7a0fbedcb39afa03271fe8f6fcc5ff4b7a0619d5261b6b5db7aae25ce8c19736

Contents?: true

Size: 912 Bytes

Versions: 1

Compression:

Stored size: 912 Bytes

Contents

# mandrill-mailer-rails

[![Build Status](https://travis-ci.org/bsedat/mandrill-mailer-rails.svg)](https://travis-ci.org/bsedat/mandrill-mailer-rails)

Handler for Rails' ActionMailer to send emails through Mandrill.

## Installation

In your `Gemfile`:

    gem 'mandrill-mailer-rails'

## Configuration

### Mandatory

Store your API Key in an environment variable or other safe place. It needs access to at least the `send` method.

In your `config/application.rb`:

    config.action_mailer.delivery_method = :mandrill
    config.mandrill_action_mailer.api_key = ENV['MANDRILL_API_KEY']

### Optional

#### Track Opens

Whether Mandrill should automatically insert a tracking image. Default: `false`.

    config.mandrill_action_mailer.track_opens = true

#### Track Clicks

Whether Mandrill should override your URLs and track clicks. Default `false`.

    config.mandrill_action_mailer.track_clicks = true

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mandrill-mailer-rails-1.0.0 README.md