Skip to content

Forward :list_management_options to SES v2 SendEmail#16

Merged
jterapin merged 1 commit into
aws:mainfrom
Telebelly:telebelly/list-management-options
May 20, 2026
Merged

Forward :list_management_options to SES v2 SendEmail#16
jterapin merged 1 commit into
aws:mainfrom
Telebelly:telebelly/list-management-options

Conversation

@aginz-telebelly

Copy link
Copy Markdown
Contributor

Adds support for passing ListManagementOptions to SendEmail as a typed API parameter, enabling SES subscription management. The value flows through delivery settings, so mailers can set it via ActionMailer's delivery_method_options:

default delivery_method_options: {
  list_management_options: {
    contact_list_name: "MarketingList",
    topic_name:        "Promos"
  }
}

Previously the only path to enable subscription management with this gem was via SMTP (which honors X-SES-LIST-MANAGEMENT-OPTIONS). The SES v2 SendEmail API does not read that header from raw MIME — it requires the typed parameter instead.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

Adds support for passing ListManagementOptions to SendEmail as a typed
API parameter, enabling SES subscription management. The value flows
through delivery settings, so mailers can set it via ActionMailer's
delivery_method_options:

    default delivery_method_options: {
      list_management_options: {
        contact_list_name: "MarketingList",
        topic_name:        "Promos"
      }
    }

Previously the only path to enable subscription management with this
gem was via SMTP (which honors X-SES-LIST-MANAGEMENT-OPTIONS). The
SES v2 SendEmail API does not read that header from raw MIME — it
requires the typed parameter instead.
@jterapin

Copy link
Copy Markdown
Contributor

Hi! Thanks for the contribution. The implementation looks good.. this got me thinking about the open requests: :configuration_set_name (Issue #11) and a past one for :email_tags (Issue #8) which should follow the same pattern. I'm considering doing a follow-up after this to add that support.

Let me chit-chat with the team and i'll circle back here :)

@jterapin jterapin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks again for the contribution. I'm going to merge this in and build on it to extend support for additional SendEmail options.

I'll circle back here once a new gem version is released.

@jterapin jterapin merged commit 4c1df44 into aws:main May 20, 2026
25 of 26 checks passed
@jterapin

Copy link
Copy Markdown
Contributor

@aginz-telebelly new version released: https://rubygems.org/gems/aws-actionmailer-ses/versions/1.2.0

@aginz-telebelly

Copy link
Copy Markdown
Contributor Author

@jterapin Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants