Skip to content

wjase/recontact-mailer

Repository files navigation

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

About

web app to handle contact form posts with recapture and email integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published