Postmark rails gem
Postmark plug-in for ActionMailer
The gem is hosted at gemcutter. If you don't have it, install it first:
sudo gem install gemcutter gem tumble
sudo gem install postmark-rails
config/environment.rb Rails::Initializer.run do |config| config.gem 'postmark-rails' require 'postmark-rails' config.action_mailer.postmark_api_key = "your-api-key" # ... end
Next, make postmark the delivery method for the production environment:
config/environments/production.rb config.action_mailer.delivery_method = :postmark
You may also tag messages, in order to track bounces more precisely.
class TestMailer < ActionMailer::Base def tagged_message subject 'hello' recipients 'firstname.lastname@example.org' from 'email@example.com' tag 'delivery' end end
Currently postmark API does not support attachments. For more information, check the docs here: http://developer.postmarkapp.com
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 © 2009 Wildbit LLC. See LICENSE for details.