recontact-mailer

module
v0.0.0-...-3ea0340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: Apache-2.0

README

recontact-mailer

This web app takes a json post request from a contact form and emails the contents to a specified address if the recaptacha check succeeds.

Server Setup

  1. Create a recaptcha account for your domain at Google

  2. Configure your settings in the /etc/recontact-mailer/env.txt file. [NOTE: Protect this file as it contains sensitive info]

RECAPTCHA_PRIVATE_KEY=
# The email address you want to receivethe contact details
TO_MAIL=
# Email credentials and host address usedfor sending the email
EMAIL_USERNAME=
EMAIL_PASSWORD=
EMAIL_HOST=
EMAIL_PORT=
# this app exposes / on the portspecified below
APP_PORT=7500
  1. Copy the config/recontact-mailer.service to /etc/systemd/system/

  2. Enable the service to start at system startup

    systemctl enable recontact-mailer.service

  3. Start the service:

    systemctl start recontact-mailer

Directories

Path Synopsis
example.go
example.go
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL