contact: fan out enquiries to n8n hub (fire-and-forget)
build-and-publish / build (push) Successful in 8s

Keeps the direct SMTP email as the reliable delivery path; when CONTACT_HUB_URL
is set, also POSTs the enquiry to the n8n webhook so the hub sends the customer
auto-reply and (later) creates CRM/task records. Best-effort with a 4s timeout,
so a slow or down hub never blocks or fails the form.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
2026-07-22 18:12:45 -05:00
co-authored by Claude Opus 4.8
parent c88bd3bc98
commit 69e67182a1
2 changed files with 28 additions and 0 deletions
+5
View File
@@ -9,3 +9,8 @@ SMTP_TOKEN=
CONTACT_TO=[email protected]
# Envelope sender. Many SMTP providers require this to match SMTP_USERNAME or a verified domain.
CONTACT_FROM=
# Optional: automation hub (n8n) webhook. When set, each enquiry is also POSTed here
# (fire-and-forget) so the hub can send the customer auto-reply and create CRM/task
# records. The direct email above stays the reliable path; leave blank to disable.
CONTACT_HUB_URL=