Mail relay: docs, agent guide, skills, changelog draft; test against the real service code; starter offers the mail service

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 20:53:38 +01:00
co-authored by Claude Fable 5.2
parent 533f571d4d
commit dd3792cbc7
25 changed files with 991 additions and 167 deletions
+5 -4
View File
@@ -276,8 +276,9 @@ characters, the extension of the detected type (`CV Jan Kowalski.pdf`; an empty
### Limits
- The limit a visitor sees and the server enforces is the lowest of: the field's value, `attachments.maxSizeMB`,
and what the e-mail transport can carry. On Microsoft Graph without the large-file path and without SMTP
settings that is about 2.8 MB ([email.md](./email.md) "Attachments"). The form document read through Payload
and what the e-mail transport can carry. With the Intecion mail service that is what the service reports (10 MB
unless Intecion set another number); on Microsoft Graph without the large-file path and without SMTP
settings about 2.8 MB ([email.md](./email.md) "Attachments"). The form document read through Payload
carries the result per File field in `resolved` (`maxSizeMB`, `maxTotalMB`, `maxFiles`, `accept`, `extensions`,
`typeLabels`) and `fileSubmitUrl` — `RenderForm` passes them on; nothing to wire.
- **Request size:** files do not go through the Server Action, so `serverActions.bodySizeLimit` (1 MB by default)
@@ -464,10 +465,10 @@ messages the editor configured (Forms → form → Emails), through
`payload.sendEmail`. For them to go out, the config needs an adapter:
```ts
email: mailAdapter(), // from '@intecion/ipal-kit' — SMTP or Graph according to the panel (email.md)
email: mailAdapter(), // from '@intecion/ipal-kit' — the mail service, or SMTP when the panel has a server (email.md)
```
Then they go through the transport chosen in Site integrations (SMTP or Graph). The editor sets recipients, subject and
Then they go through the transport in effect (the Intecion mail service, or the SMTP server from Site integrations). The editor sets recipients, subject and
body (placeholders: `{{field}}`, `{{*}}`, `{{*:table}}`) without touching the code.
`submitForm` is responsible only for Turnstile verification and storing. It stores the submission in the page's language