# Runway Contact plugin A **contact form** for [Runway](../README.md): an embeddable form content widget that **POSTs** to an anonymous `/contact/submit` route, which **both emails** each submission over the site's own SMTP relay **and stores** it as tenant-owned data (read in the console) — belt-and-suspenders, so a message is never lost even if SMTP is down. CAPTCHA (when the site has one) and honeypot anti-spam. - **Plugin id:** `contact` — install folder `external/plugins/contact/` · **version 2.1.0** - **Java package:** `mx.quest.contact` · **SPIs:** `ContentWidget` (`contact`) + `EndpointContributor` (`POST /contact/submit` anonymous; `POST /contact/install-page` and `POST /contact/smtp-test`, CSRF-checked) - **Links only the Runway SPI** (`requiresSpi: ">=1.0.0"`): `PluginSettings` (settings + the SMTP password secret), `PluginSiteFiles` (submissions), `Messages`, `AccessCheck`, `SitePages` (the starter page), `CaptchaService`. **Needs Runway 1.0.0 or later** (SPI `1.0.0`) — a kernel with an older SPI blocks this release at startup with a reason. See [`CHANGELOG.md`](CHANGELOG.md). - **No plugin dependency:** Jakarta Mail is part of the **core** Runway application (the kernel bundles it for its own platform mailer), so `contact` compiles it as `provided` and resolves the kernel's copy at runtime. ## Use it 1. Install `contact`, then restart the host. 2. Enable the plugin, set your thank-you message, and fill in the **SMTP relay** (host, port, auth, username/password, STARTTLS/SSL, from/to) on the Contact settings page — the password is stored encrypted. 3. Verify the relay with **Send a test email** on the settings page (operator-only). 4. Put a form on a page: install the ready-made **Contact page** from the settings (it follows the site's publishing rules and says what happened), or add `
` to any page. 5. Read submissions on the Contact settings page (newest first) — a copy is kept even when email delivery fails. > A site with a **blank** SMTP host/recipient simply stores messages (no email) — email is optional. A site sends > with its **own** relay only (tenant isolation). > **Privacy.** The form POSTs, so a visitor's fields never appear in a URL, browser history or proxy log. The > stored submissions are declared **personal data** (`siteData.personal: [submissions.tsv]`): a site's **transfer > copy** leaves them out (and lists the omission in its manifest); a **full backup** keeps them. See > [`docs/CONTACT-PLUGIN.md`](docs/CONTACT-PLUGIN.md). ## Build and verify ```bash export JAVA_HOME=/path/to/jdk-25 mvn verify # 75 tests (send seam mocked — no socket) mvn -DskipTests package # jar + target/contact/ + the .zip HOST_JAR=/path/to/runway-app-