Sending method, the owner's answers: nothing changes until another option is picked; the panel warns before the save
- a save that sends the method already shown, while nothing is stored, stores nothing: the site keeps sending exactly as before and keeps following what is filled in, until somebody picks ANOTHER option - the state block reads the form as it is edited and warns at once when "Own SMTP server" is picked with server, user name or password empty, or "Microsoft Graph" on a server without GRAPH_* (graphReady in the panel state); it reloads after every save - texts, doctor's info finding, docs, skills, changelog; reference e2e checks the warning Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
8c19391590
commit
dc3e594d38
+4
-2
@@ -1298,14 +1298,16 @@ one migration** (`pnpm payload migrate:create`, applied at container start); bef
|
||||
old way, the Site integrations page does not open, and `iapl-doctor --deep` reports `mail-method` (error). Until somebody chooses (an upgraded site, a new site) the order of 1.17.0 applies and the field shows
|
||||
its result as selected (`resolveMailTransport`, type `MailTransport`): Graph when `emailTransport` is `graph` and
|
||||
`GRAPH_*` is set → SMTP when server, user name and password are filled in → Graph when `GRAPH_*` is set → the mail
|
||||
service → nothing. The first save of Site integrations stores the choice. From code: `getMailMethod`,
|
||||
service → nothing. Saving with the method shown stores no choice: only picking another option does (the owner's
|
||||
rule: nothing changes until somebody picks another option); `setMailMethod` fixes it from code. The state block warns
|
||||
while an unusable option is picked, before the save. From code: `getMailMethod`,
|
||||
`setMailMethod(payload, 'relay' | 'smtp' | 'graph' | null)`, `resolveMailMethod` (`ResolvedMailMethod`,
|
||||
`MailMethodProblem`), `MailMethod`, `MAIL_METHODS`, `isMailMethod`, `readMailSettings` / `STORED_MAIL_METHOD_CONTEXT`
|
||||
(a read with the value as stored — an ordinary read shows the method in effect), `mailMethodColumnMissing`; or
|
||||
`updateGlobal` with `emailMethod`. Seeds that
|
||||
set up mail write `emailMethod`, not `emailTransport`. **Verify:** the state block names the method; **Send test
|
||||
e-mail** answers "through IWSN" / "through your SMTP server" / "through Microsoft Graph"; `iapl-doctor --deep`
|
||||
reports no `mail-method` finding after the first save. `mail: { relay: false }` removes the option "IWSN".
|
||||
reports `mail-method` info (nothing picked yet) or nothing (picked and usable). `mail: { relay: false }` removes the option "IWSN".
|
||||
|
||||
**What the site needs for the mail service** — check each one:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user