Skip to content

Refactor MailHelper to be more provider-agnostic#3108

Merged
labkey-adam merged 3 commits into
developfrom
fb_mailhelper_refactor
Jul 21, 2026
Merged

Refactor MailHelper to be more provider-agnostic#3108
labkey-adam merged 3 commits into
developfrom
fb_mailhelper_refactor

Conversation

@labkey-adam

Copy link
Copy Markdown
Contributor

Rationale

Dumbster changes to support a somewhat more agnostic MailHelper

Related Pull Requests


// Install our own SMTP provider pointed at the local capture server and make it the active provider, rather
// than mutating another provider's session state. All outgoing email is captured regardless of how the server's
// real email transport (SMTP, Microsoft Graph, etc.) is configured.

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.

I could be misreading this - but I read these two sentences like a contradiction on first pass: sentence 1 says we install our own SMTP provider, sentence 2 says we capture email regardless of transport including Graph (implies Dumbster handles Graph traffic, but of course we're just replacing the active provider).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AI-generated comment that could be clearer. I'll clean it up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rewritten

@labkey-bpatel labkey-bpatel 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.

Please see my comment regarding a comment

labkey-adam added a commit to LabKey/platform that referenced this pull request Jul 21, 2026
## Rationale
The first Related PR added support for our first non-SMTP email provider
(Microsoft Graph API email transport), but MailHelper and related
classes remained very tied to SMTP. This takes steps toward making
MailHelper provider-agnostic.
LabKey/kanban#1714

## Related Pull Requests
- #7381
- LabKey/premiumModules#661
- LabKey/testAutomation#3108

## Changes
- Register SMTP provider like other providers
- Improve configuration error to not hard-code any provider information
- list only the providers that are available
- Fix some potential concurrency issues
@labkey-adam
labkey-adam merged commit cb2d092 into develop Jul 21, 2026
7 checks passed
@labkey-adam
labkey-adam deleted the fb_mailhelper_refactor branch July 21, 2026 20:33
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