No commit activity in last 3 years
No release in over 3 years
Gives letter_opener and letter_opener_web work with S3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0

Runtime

 Project Readme

LetterOpenerWebS3 for Rails 5 and Rails 4

Addon for letter_opener_web and letter_opener gems to store files on Amazon S3

Installation

Add this line to your application's Gemfile:

gem 'letter_opener_web_s3'

And then execute:

$ bundle

Or install it yourself as:

$ gem install letter_opener_web_s3

Usage

Configure AWS credentials

LetterOpenerWebS3.configure do |spec|
  spec.s3_config = {
      region: AWS_S3_REGION,
      bucket_name: AWS_S3_BUCKET,
      access_key_id: AWS_S3_KEY_ID,
      secret_access_key: AWS_S3_ACCESS_KEY
  }
end

To support application assets need configure action_mailer.asset_host

Without configuration, gem works like letter_opener_web use local file storage

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/letter_opener_web_s3. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.