Skip to content

Add multi email recipients#393

Merged
mikehquan19 merged 5 commits into
developfrom
email-multi-recipient
Apr 24, 2026
Merged

Add multi email recipients#393
mikehquan19 merged 5 commits into
developfrom
email-multi-recipient

Conversation

@justinschwerdtfeger
Copy link
Copy Markdown
Contributor

@justinschwerdtfeger justinschwerdtfeger commented Apr 23, 2026

The email endpoint should have a way to send emails to multiple recipients with one request.
To avoid hitting any SMTP limits, multi recipient emails are not allowed for /email/queue, so having more than one string in the "to" array results in a google cloud task being created for each recipient.
/email/send does allow multi recipients in one email, but probably shouldn't be used that way since it bypasses the queueing and could cause the api to hit the SMTP limit.

I'm not 100% on how I've implemented this PR, so I can definitely make any changes if we want a different behavior for multi-recipients.

mikehquan19
mikehquan19 previously approved these changes Apr 23, 2026
Copy link
Copy Markdown
Contributor

@mikehquan19 mikehquan19 left a comment

Choose a reason for hiding this comment

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

Just some questions, should be okay now

Comment thread api/controllers/email.go Outdated
@mikehquan19
Copy link
Copy Markdown
Contributor

Nvm you mentioned the concerns

@justinschwerdtfeger justinschwerdtfeger self-assigned this Apr 24, 2026
Copy link
Copy Markdown
Contributor

@mikehquan19 mikehquan19 left a comment

Choose a reason for hiding this comment

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

Cool!

@mikehquan19 mikehquan19 merged commit e10f19e into develop Apr 24, 2026
2 checks passed
@mikehquan19 mikehquan19 deleted the email-multi-recipient branch April 24, 2026 02:08
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