Skip to content

Basic form template using Nodemailer + Express + EJS

Notifications You must be signed in to change notification settings

mjwdavis/nodemailer-form

Repository files navigation

This is a NodeMailer App

Usage

  1. Add an .env file in the root directory with the following variables:
    • PORT - port you want to run the app on
    • DESTINATIONEMAIL - where this form is sent
    • TRANSPORTERUSER - email of email service we're piggybacking on
    • TRANSPORTERPASS - password for the same
    • EXPRESS_SESSION - this is just a hash unique to the app for setting Express session
    • CAS_URL_PROD - production cas url
    • CAS_URL_DEV - dev cas url
    • APP_URL - return url for cas

Development

  1. Install dependencies: npm install
  2. Run server (development): nodemon

Production

  1. Install wherever you want it.
  2. SCP .env file to that directory, for example scp .env [email protected]:/opt/nodemailer-form
  3. Start and build app: docker compose up -d

About

Basic form template using Nodemailer + Express + EJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published