Sha256: 120877191369ae384786f4c88e42a6348492e3b2a0b190ca49a0e51e33e04f87
Contents?: true
Size: 1.69 KB
Versions: 1
Compression:
Stored size: 1.69 KB
Contents
# ActionMailboxAmazonIngress Provides _Amazon SES/SNS_ integration with [_Rails ActionMailbox_](https://guides.rubyonrails.org/action_mailbox_basics.html). ## Installation Add this line to your application's Gemfile: ```ruby gem 'action_mailbox_amazon_ingress', '~> 0.1.0' ``` ## Configuration ### Amazon SES/SNS Configure _SES_ to [route emails through SNS](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/configure-sns-notifications.html). If your website is hosted at https://www.example.com then configure _SNS_ to publish the _SES_ notification topic to this _HTTP_ endpoint: https://example.com/rails/action_mailbox/amazon/inbound_emails ### Rails Configure _ActionMailbox_ to accept emails from Amazon SES: ``` # config/environments/production.rb config.action_mailbox.ingress = :amazon ``` Configure which _SNS_ topics will be accepted: ``` # config/environments/production.rb config.action_mailbox.amazon.subscribed_topics = %w( arn:aws:sns:eu-west-1:123456789001:example-topic-1 arn:aws:sns:us-east-1:123456789002:example-topic-2 ) ``` Subscriptions will now be auto-confirmed and messages will be delivered via _ActionMailbox_. Note that even if you manually confirm subscriptions you will still need to provide a list of subscribed topics; messages from unrecognized topics will be ignored. See [ActionMailbox documentation](https://guides.rubyonrails.org/action_mailbox_basics.html) for full usage information. ## Development Ensure _Rubocop_, _RSpec_, and _StrongVersions_ compliance by running `make`: ``` make ``` ## Contributing Pull requests are welcome. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_mailbox_amazon_ingress-0.1.0 | README.md |