Skip to content

Instantly share code, notes, and snippets.

@wmakley
wmakley / aws_ses_delivery_method.rb
Last active July 26, 2022 09:12
Use AWS SESv2 SDK as an ActionMailer delivery method (API call instead of SMTP)
# Why?
# * May use same IAM role or account in use for other app features.
# * Avoid sharing same SMTP credentials across multiple apps.
#
# Alternatives:
# * https://github.com/aws/aws-sdk-rails (may be overkill)
#
# Gemfile:
# gem 'aws-sdk-sesv2'
#