README.md in postmark-rails-0.7.0 vs README.md in postmark-rails-0.8.0

- old
+ new

@@ -14,11 +14,11 @@ ## Configuring your Rails application Add this to your Gemfile: (change version numbers if needed) ``` ruby -gem 'postmark-rails', '~> 0.7.0' +gem 'postmark-rails', '~> 0.8.0' ``` Don’t forget to run `bundle install` command every time you change something in the Gemfile. Add this to your config/application.rb: @@ -30,23 +30,26 @@ The `postmark_settings` hash can contain [all options](https://github.com/wildbit/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`. For the API details, refer to the [developer documentation](http://developer.postmarkapp.com). -## Tagging your deliveries +## Tracking opens and tagging your deliveries You can use tags to categorize outgoing messages and attach application-specific information. Tagging the different types of email that you send lets you [review statistics and bounce reports separately](http://developer.postmarkapp.com/developer-build.html#message-format). +Pass `:track_opens => 'true'` to enable/disable open tracking on per-message basis. Check out the [Triggers API](https://github.com/wildbit/postmark-gem/wiki/The-Triggers-API-Support) to see how Postmark can help you control this with tags. **Note that we pass a string here, since it becomes a header value. Passing a boolean may or may not work depending on your Rails version.** + ``` ruby class TestMailer < ActionMailer::Base def tagged_message mail( :subject => 'hello', :to => 'sheldon@bigbangtheory.com', :from => 'leonard@bigbangtheory.com', - :tag => 'my-tag' + :tag => 'my-tag', + :track_opens => 'true' ) end end ``` @@ -127,6 +130,6 @@ * Nicolás Sanguinetti * Laust Rud Jacobsen (rud) ## Copyright -Copyright © 2010—2013 Wildbit LLC. See LICENSE for details. +Copyright © 2010—2013 Wildbit LLC. See LICENSE for details. \ No newline at end of file