Skip to content

Karunakar/postmark-rails3

 
 

Repository files navigation

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 © 2010 Randy Schmidt. See LICENSE for details.

About

Postmark gem for Rails3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published