A Step-by-step tutorial on how to set up Nodemailer to create a contact form.
👉 Read tutorial here
- Express: ^4.17.1
- Nodemailer: ^6.4.11
- multiparty: ^4.2.2
- dotenv: ^8.2.0
- Node: 12.14.1
- Install dependencies:
npm install
- Add an
.env
file in the root directory with the following variables:EMAIL=YOUR_EMAIL
PASS=YOUR_PASSWORD
- Run server:
npm start