Merge claude/mail-transport-choice: "Sending method" is an explicit choice in the panel (IWSN, own SMTP, Graph); nothing changes until another option is picked

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 23:27:36 +01:00
co-authored by Claude Opus 5.5
38 changed files with 1117 additions and 110 deletions
+6 -2
View File
@@ -250,8 +250,11 @@ export { holdAccountMail, releaseAccountMail, sendAccountMailAfterCommit, withAc
export { mailAttachmentLimit } from './modules/email/attachmentLimit.js'
export { graphAdapter } from './modules/email/graphAdapter.js'
export type { GraphAdapterArgs } from './modules/email/graphAdapter.js'
export { GRAPH_DEPRECATION_NOTICE, mailAdapter, resolveMailTransport } from './modules/email/mailAdapter.js'
export type { MailAdapterArgs, MailTransport } from './modules/email/mailAdapter.js'
export { GRAPH_DEPRECATION_NOTICE, mailAdapter, resolveMailMethod, resolveMailTransport } from './modules/email/mailAdapter.js'
export type { MailAdapterArgs, MailMethodProblem, MailTransport, ResolvedMailMethod } from './modules/email/mailAdapter.js'
// "Sending method": the choice an admin saved (the stored field `emailMethod`, new in 1.17.1).
export { getMailMethod, isMailMethod, MAIL_METHODS, readMailSettings, setMailMethod, STORED_MAIL_METHOD_CONTEXT } from './modules/email/method.js'
export type { MailMethod } from './modules/email/method.js'
// Imported straight from the file, NOT from ./modules/email/index.js — that
// barrel re-exports sendEmail, which imports 'server-only' and would crash when
// Payload loads the config (or runs generate:importmap) as a plain Node script.
@@ -422,6 +425,7 @@ export { getNotificationTexts, NOTIFICATION_FALLBACK, NOTIFICATION_FALLBACK_PL,
export type { FormNotificationTexts, NotificationTexts } from './modules/notifications/index.js'
export type { PagesOption, SystemPageRole } from './modules/pages/index.js'
export { ALL_SYSTEM_PAGE_ROLES, getSystemPagePath, unlistedPageIds } from './modules/pages/index.js'
export { mailMethodColumnMissing } from './modules/payload/getSiteIntegrations.js'
export type { GlobalQueryOptions } from './modules/payload/index.js'
export {
getGlobal,