hackclub / hackclub/hackathons-backend

Use AWS SNS to handle SES Feedback Notifications

Open
#461 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
29
Forks
8
Avg merge
12h 2m
Merged PRs (30d)
41

Description

Whenever we send digests on Tuesdays, HCB gets spammed with hundreds of `"Delivery Status Notification (Failure)"` emails.

When we receive these notifications, it generally means the email bounced (e.g. email address no longer valid), or there was a complaint (marked as spam). Because of this, we want to unsubscribe the user. Currently, these notifications get sent to `hackathons@hackclub.com`.

By sending the SES Feedback notification to a AWS SNS Topic, we can then programmatically unsubscribe these users.

![image](https://github.com/hackclub/hackathons-backend/assets/20099646/5582a058-3312-4704-b943-329dca703972)

https://docs.aws.amazon.com/ses/latest/dg/notification-contents.html
https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity-using-notifications-sns.html

_follow up with @MelSmith104 and @alexdevz once completed_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.