Postmark plug-in for ActionMailer 3
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
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
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.
-
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 © 2010 Randy Schmidt. See LICENSE for details.