Task #18 — Send a copy of the submitted message back to the contact in the confirmation email.
Changes made to artifacts/api-server/src/routes/contact.ts:
- Updated buildConfirmationEmail() signature from (name: string) to
({ name, subject, message }) so it can accept and render the original submission.
- Added a visually distinct "Ihre Nachricht" quoted block to the HTML template:
- Light gray background (#f8fafc) matching the existing bgField colour
- Subtle 3px left border (#e2e8f0) styled as a blockquote
- Rounded right corners (border-radius: 0 6px 6px 0)
- ALL-CAPS label "IHRE NACHRICHT" in the same style as field labels elsewhere
- Optional subject line rendered in semi-bold if provided
- Message body with white-space:pre-wrap to preserve line breaks
- All user-supplied values (subject, message) passed through the existing
escapeHtml() helper — XSS-safe.
- Updated the plain-text fallback: adds a "—" delimited quoted section
with optional "Betreff:" line before the message body.
- Updated the call site to pass { name, subject, message } to
buildConfirmationEmail().
No new dependencies. Pre-existing TS error (SendContactMessageBody missing
from @workspace/api-zod) is unrelated to this task and unchanged.
Replit-Task-Id: 63279220-bb35-4721-bbd6-86182301a697