Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

A very simple, configurable server providing a endpoint for contact forms.

Notifications You must be signed in to change notification settings

F1nnM/simple-contact-form-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple contact-form backend

A simple, configurable REST-API for sending mails.

In need for an email backend for a contact form? Simply fire up the docker-container or run this node application, and you're good to go.

At least, almost. You do need to configure it first.

Config

This app has to be configured via the following environment variables:

Environment variable Description Value
MAIL_HOST Your mail server 'smtp.example.com'
MAIL_PORT Port of your server usually 25 / 587 / 465
MAIL_SECURE Use secure way of communication, usually only true when port is 465 true / false
MAIL_USER User to log in to your server 'username'
MAIL_PASS Password for the user 'password'
MAIL_SENDER The email to send the mails from '[email protected]'
MAIL_RECEIVER The email(s) to send the mail to Either one email address or a comma-separated list of receivers
MAIL_SUBJECT The subject to send the mail with 'Contact Form'
CORS_ORIGIN The cors-origin header to send 'example.com'

Running it

Either use the Docker image f1nnm/contact-backend or run the node application yourself.

About

A very simple, configurable server providing a endpoint for contact forms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages