Skip to content

automated email user updates#167

Open
swarkewalia wants to merge 3 commits intomainfrom
sk/SSF-189-automated-email-user-updates
Open

automated email user updates#167
swarkewalia wants to merge 3 commits intomainfrom
sk/SSF-189-automated-email-user-updates

Conversation

@swarkewalia
Copy link
Copy Markdown

ℹ️ Issue

Closes 189

📝 Description

Implemented Volunteer’s pantry assignment change automated email template

✔️ Verification

BEFORE TESTING: Add 2 new environment variables:

AWS_SES_SENDER_EMAIL (set this to one of your emails, this will be the address that sends the emails for you to verify)
SEND_AUTOMATED_EMAILS (switch this to true to turn on Cognito account creation and email sending permissions)
Add your email that you put in the AWS_SES_SENDER_EMAIL into the following AWS SES Identities: https://us-east-2.console.aws.amazon.com/ses/home?region=us-east-2#/identities

Reference #127

Update a volunteer's pantry assignment PATCH /api/pantries/{pantryId}/volunteers (through a secondary email while primary is admin) and verify that the proper sender, subject, message, attachments are all there.

Copy link
Copy Markdown
Collaborator

@sam-schu sam-schu left a comment

Choose a reason for hiding this comment

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

Can we wrap the email sending in a try-catch like we do for the other emails?

@sam-schu sam-schu requested a review from dburkhart07 May 2, 2026 21:07
Copy link
Copy Markdown

@dburkhart07 dburkhart07 left a comment

Choose a reason for hiding this comment

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

See slack comment about the rest of the ticket. Also, I wonder if we should alter the email to include which pantries the volunteer has been assigned to. Can we ask Priya about that?

return this.repo.save(volunteer);
const saved = await this.repo.save(volunteer);

const { subject, bodyHTML } =
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we add tests for this functionality like we've done for all of the other emails?

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.

3 participants