Archived
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.
17 lines
636 B
Bash
17 lines
636 B
Bash
# SMTP credentials for the contact form. Copy to .env and fill in.
|
|
# .env is gitignored — never commit real values.
|
|
SMTP_SERVER=
|
|
SMTP_PORT=587
|
|
SMTP_USERNAME=
|
|
SMTP_TOKEN=
|
|
|
|
# Where contact form submissions are delivered.
|
|
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=
|