Fork of https://github.com/rchakode/hugo-mx-gateway Contact form API for static websites
Go to file
Rodrigue Chakode e535b8d75b first commit 2020-05-10 00:02:18 +02:00
api first commit 2020-05-10 00:02:18 +02:00
examples first commit 2020-05-10 00:02:18 +02:00
templates first commit 2020-05-10 00:02:18 +02:00
vendor first commit 2020-05-10 00:02:18 +02:00
.gitignore first commit 2020-05-10 00:02:18 +02:00
Makefile first commit 2020-05-10 00:02:18 +02:00
README.md first commit 2020-05-10 00:02:18 +02:00
go.mod first commit 2020-05-10 00:02:18 +02:00
go.sum first commit 2020-05-10 00:02:18 +02:00
logger.go first commit 2020-05-10 00:02:18 +02:00
main.go first commit 2020-05-10 00:02:18 +02:00
request.go first commit 2020-05-10 00:02:18 +02:00
routers.go first commit 2020-05-10 00:02:18 +02:00
sendmail.go first commit 2020-05-10 00:02:18 +02:00

README.md

Overview

Configuration variables

SERVER_ADDR=":8393"
SMTP_SERVER_ADDR="mail.example.com:465"
SMTP_CLIENT_USERNAME="demo@example.com"
SMTP_CLIENT_PASSWORD="dem0ToBeChanged"
CONTACT_REPLY_EMAIL="noreply@example.com"
CONTACT_REPLY_CC_EMAIL="contact@example.com"
DEMO_URL="https://demo.example.com/"
ALLOWED_ORIGIN_DOMAIN="localhost:1313"
TEMPLATE_DEMO_REQUEST_REPLY=templates/template_demo_request_reply.html
TEMPLATE_CONTACT_REQUEST_REPLY=templates/template_contact_request_reply.html

Build

make build