moxie-backend/.env.example
Z User b9dbd59e7d feat: add email notifications for contact form submissions
- Add nodemailer dependency for SMTP email delivery
- Create src/services/email.js with reusable email service
- Update POST /api/contact to send email notification after saving
- Email is sent fire-and-forget (doesn't block API response)
- Emails include both plain-text and HTML versions
- Reply-To header set to submitter's email for easy replies
- Add SMTP environment variables to .env.example
- Document email setup in README with provider-specific guides
2026-05-05 21:05:37 +00:00

40 lines
1023 B
Plaintext

# Auth0 Configuration
AUTH0_DOMAIN=dev-t13zhs74oltgqtfx.us.auth0.com
AUTH0_CLIENT_ID=AWRYU8EBnKaHvRQOMXXADxgGEoBN45oN
AUTH0_CLIENT_SECRET=your-client-secret-here
AUTH0_AUDIENCE=https://dev-t13zhs74oltgqtfx.us.auth0.com/api/v2/
# Application URL
APP_URL=https://moxiegen.client.guacamolebox.net
# Server Configuration
PORT=9991
NODE_ENV=production
# CORS Origin
CORS_ORIGIN=https://moxiegen.client.guacamolebox.net
# JWT Secret for signing (optional, for additional security)
JWT_SECRET=your-jwt-secret-change-this-in-production
# Stripe (for future use)
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
# PayPal (for future use)
PAYPAL_CLIENT_ID=
PAYPAL_CLIENT_SECRET=
PAYPAL_WEBHOOK_ID=
# SMTP Email Configuration (for contact form notifications)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_SECURE=false
SMTP_FROM=Moxie <your-email@gmail.com>
# Destination email for contact form submissions
# Defaults to SMTP_USER if not set
CONTACT_EMAIL=your-email@gmail.com