Skip to content

BACKEND CONTACT FORM API WITH DOTNET 8.0

License

Notifications You must be signed in to change notification settings

BabylooPro/ContactForm.csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContactForm API (.NET 8 + AWS Lambda)

Version License TODO DOCS

Backend RESTful API for contact form submissions: multi-SMTP failover, templates, attachments, API versioning, rate limiting. Runs locally or on AWS Lambda.

Documentation

Setup
Feature

Quick start

cd API
dotnet restore
dotnet run
  • Swagger UI: http://localhost:5108/
  • Health check: GET http://localhost:5108/test

Configuration

Minimum required env vars:

  • SMTP_CONFIGURATIONS
  • SMTP_{INDEX}_PASSWORD
  • SMTP_RECEPTION_EMAIL
  • SMTP_CATCHALL_EMAIL

Optional (prod CORS allow-list):

  • CORS_{INDEX}_ORIGIN

See Docs/configuration.md.

API

Primary endpoints (v1):

  • POST /api/v1/emails?smtpId={smtpId}
  • POST /api/v1/emails?smtpId={smtpId}&test=true
  • GET /api/v1/emails/{emailId}
  • GET /api/v1/smtp-configurations
  • GET /api/v1/versiontest

Minimal local call example:

curl -X POST "http://localhost:5108/api/v1/emails?smtpId=1" \
  -H "Content-Type: application/json" \
  -d '{"Email":"sender@example.com","Username":"John Doe","Message":"Hello"}'

Details: Docs/api.md and Docs/versioning.md.

Deployment

License

MIT - see LICENSE.

About

BACKEND CONTACT FORM API WITH DOTNET 8.0

Topics

Resources

License

Stars

Watchers

Forks

Languages