Fork of https://github.com/rchakode/hugo-mx-gateway Contact form API for static websites
Go to file
Rodrigue Chakode 9755f2af55 renamed sample app config to app.yaml.sample 2020-05-12 23:41:17 +02:00
examples first commit 2020-05-10 00:02:18 +02:00
templates renamed sample app config to app.yaml.sample 2020-05-12 23:41:17 +02:00
vendor core support for app engine 2020-05-10 01:20:35 +02:00
.gcloudignore core support for app engine 2020-05-10 01:20:35 +02:00
.gitignore first commit 2020-05-10 00:02:18 +02:00
Makefile core support for app engine 2020-05-10 01:20:35 +02:00
README.md core support for app engine 2020-05-10 01:20:35 +02:00
app.yaml.sample renamed sample app config to app.yaml.sample 2020-05-12 23:41:17 +02:00
go.mod core support for app engine 2020-05-10 01:20:35 +02:00
go.sum core support for app engine 2020-05-10 01:20:35 +02:00
main.go core support for app engine 2020-05-10 01:20:35 +02:00
sendmail.go core support for app engine 2020-05-10 01:20:35 +02:00
swagger.yaml core support for app engine 2020-05-10 01:20:35 +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

SMTP

https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailgun?hl=fr

Build

make build