Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Postmark gem for Rails3
branch: master

This branch is even with r38y:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.bundle
lib
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
VERSION
init.rb
postmark-rails.gemspec

README.rdoc

Postmark rails3 gem

Postmark plug-in for ActionMailer 3

Install

The gem is hosted at gemcutter. If you don't have it, install it first:

sudo gem install gemcutter
gem tumble

Then

sudo gem install postmark-rails3

Example

config/application.rb or environment file

config.action_mailer.delivery_method = :postmark

config.action_mailer.postmark_settings = {:api_key => "your-api-key"}

or in an initializer ActionMailer::Base.delivery_method = :postmark ActionMailer::Base.postmark_settings = {:api_key => “your-api-key”}

You may also tag messages, in order to track bounces more precisely.

class TestMailer < ActionMailer::Base
  def tagged_message

mail( :subject => 'hello', :to => 'sheldon@bigbangtheory.com', :from => 'leonard@bigbangtheory.com', :tag => 'delivery' )

  end
end

Limitations

Currently postmark API does not support attachments. For more information, check the docs here:
http://developer.postmarkapp.com

Requirements

You will also need postmark account, server and sender signature set up to use it.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history.

  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright © 2010 Randy Schmidt. See LICENSE for details.

Something went wrong with that request. Please try again.