Categorygithub.com/michaelrausch/Contact-Form-Service
repositorypackage
0.0.0-20211212093341-124d7b6d34fa
Repository: https://github.com/michaelrausch/contact-form-service.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Contact Form Service

A simple and lightweight API for handling contact form submissions.

Configuration

Create a config.yaml file in the same directory as the executable

# Configure multiple recipients
# Specify the 'id' in the API call
destinations:
  - id: personalwebsite
    name: "Joe Bloggs"
    email: "[email protected]"

  - id: appsupport
    name: "App Support"
    email: "[email protected]"

# Configure API keys for MailJet
mailjet: 
  privatekey: xxx
  publickey: xxx
  from: [email protected]
  name: Contact Form
  subject: Contact Form Message
  
slack:
  apikey: demoapikey
  channelid: chanid

Available as a Docker image

docker pull ghcr.io/michaelrausch/contact:latest

Usage

POST "/"

{
   "Name": "Joe Bloggs"
   "Email": "[email protected]"
   "Message": "Hello, World!"
   "Destination": "personalwebsite"
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

BSD-3-Clause