Boilerplate: https://github.com/crsandeep/simple-react-full-stack
- Nodemailer: SMTP Transporter
Create .env file and specify the following:
# For UBC
# SMTP relay
EMAIL_HOST=smtp.mail-relay.ubc.ca
TRANSPORTER_OPTIONS=smtpRelay (by default)
# SMTP
EMAIL_HOST=smtp.mail.ubc.ca
TRANSPORTER_OPTIONS=smtp
---------------------
EMAIL_HOST=
ACCOUNT_USER=
ACCOUNT_PASS=
ACCOUNT_EMAIL=
ACCOUNT_NAME=
TRANSPORTER_OPTIONS=
- Note: ACCOUNT_USER and ACCOUNT_PASS must filled when smtp options will be used.
# Clone the repository
$ git clone https://github.com/UBC-LFS/lfs-mass-mailer.git
# Install dependencies
$ npm install
# Start development server
$ npm run dev
# Start production server
$ npm start
# Optional. Build for production
$ npm run build