diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e53cf6..6cfc6bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Changelog -### 1.2.0.pre -- Support options via message headers [#2](https://github.com/Teamtailor/mail-ses/pull/2) +### 1.2.0 + +- Support different message_id domains for different AWS SES regions. [#10](https://github.com/tablecheck/mail-ses/pull/10) +- Support options via message headers. [#2](https://github.com/Teamtailor/mail-ses/pull/2), [ad18f13](https://github.com/Teamtailor/mail-ses/commit/ad18f133ecaa6d6a5c4765930fe1b3b413a498a8) and [00a3e97](https://github.com/Teamtailor/mail-ses/commit/00a3e97fea5caba10b5d9ef0d418f26ccb4b0e61) +- Use Standard instead of Rubocop. +- Publish the fork as a separate gem: [tt-mail-ses](https://rubygems.org/gems/tt-mail-ses). ### 1.1.0 diff --git a/README.md b/README.md index e0e1dc2..610a875 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ [![Gem Version](https://badge.fury.io/rb/mail-ses.svg)](http://badge.fury.io/rb/mail-ses) -[![Github Actions](https://github.com/tablecheck/mail-ses/actions/workflows/test.yml/badge.svg)](https://github.com/tablecheck/mail-ses/actions/workflows/test.yml) +[![Github Actions](https://github.com/teamtailor/mail-ses/actions/workflows/test.yml/badge.svg)](https://github.com/teamtailor/mail-ses/actions/workflows/test.yml) # Mail::SES +## Fork from [tablecheck/mail-ses](https://github.com/tablecheck/mail-ses) +This gem was forked to add support for different message_id domains for different AWS SES regions and support options via message headers. + Mail::SES is a mail delivery method handler for Amazon SES (Simple Email Service) which can be used with Rails' [Action Mailer](https://guides.rubyonrails.org/action_mailer_basics.html). This gem is inspired by [Drew Blas' AWS::SES gem](https://github.com/drewblas/aws-ses), @@ -23,7 +26,7 @@ Please use version 0.1.x of this gem for legacy Ruby and AWS SDK support. In your `Gemfile`: ```ruby -gem 'mail-ses' +gem "tt-mail-ses", require: "mail-ses" ``` Next, make a new initializer at `config/initializers/mail_ses.rb`: @@ -52,7 +55,8 @@ ActionMailer::Base.add_delivery_method :ses, Mail::SES, region: 'us-east-1', session_token: 'foobar', retry_limit: 5, - retry_max_delay: 10 + retry_max_delay: 10, + message_id_domain: "eu-west-1.amazonses.com" ``` In addition, the shortcut option `:use_iam_profile (Boolean)` which activates the IAM instance profile. @@ -82,7 +86,6 @@ ActionMailer::Base.add_delivery_method :ses, Mail::SES, You can override the default mail options on a per-mail basis by passing them in the `mail` method: - ```ruby class ApplicationMailer < ActionMailer::Base def example diff --git a/lib/mail/ses/version.rb b/lib/mail/ses/version.rb index dd8f40a..7f0aecc 100644 --- a/lib/mail/ses/version.rb +++ b/lib/mail/ses/version.rb @@ -2,6 +2,6 @@ module Mail class SES - VERSION = "1.1.0.pre2" + VERSION = "1.2.0" end end