aws-samples / amazon-pinpoint-manage-email-unsubscribes

MIT No Attribution
2 stars 1 forks source link

Getting Pinpoint to set ListManagementOptions on SendEmail operations #1

Open zakyg opened 11 months ago

zakyg commented 11 months ago

Since Pinpoint sits on top of SES, which has a built in solution for managing unsubscribes as described here https://docs.aws.amazon.com/ses/latest/dg/sending-email-subscription-management.html is it possible to leverage it? The solution in this repository's sample seems very complex in contrast.

If I understand correctly, it would be enough to get a way to control the ListManagementOptions that Pinpoint sets in the SendEmail operation to be able to add a {{amazonSESUnsubscribeUrl}} placeholder that SES would replace with an unsubscribe link.

knxroot commented 2 months ago

I agree with zakyg that leveraging the built-in unsubscribe management functionality of SES would be a much simpler solution than the complex architecture described in this repository. Since Pinpoint sits on top of SES, it would be ideal if Pinpoint could expose a way to control the ListManagementOptions that are set in the SendEmail operation. This would allow using the {{amazonSESUnsubscribeUrl}} placeholder that SES can replace with an unsubscribe link, providing a straightforward way to manage email unsubscribes.

Exposing this functionality in Pinpoint would be a valuable enhancement that could significantly simplify the email unsubscribe handling process.