Postboi is framework-agnostic — read the request’s FormData in an API route and hand it
straight to mail(). Postboi extracts the special fields and renders the rest into a tidy HTML table.
Point a multipart/form-data form at the route. Include hidden _subject and _reply_to fields, and mirror the email into _reply_to with a one-line oninput so replying reaches
the sender:
Field names use the fieldset→field syntax. API routes need SSR,
so set output: 'server' with an adapter in astro.config.mjs. The provider and default
recipient come from postboi.config.ts — a POSTBOI_TOKEN routes to Postboi Cloud, or pick any provider.
Runnable example: examples/astro-provider-postboi.