In this article, you'll learn how to send HTML Emails with Node.js, Nodemailer, Prisma, PostgreSQL, Express, and Docker-compose. We'll create a generic class that can be used to send single or multiple emails at once by chaining the methods together.
- Send Emails with Node.js, Nodemailer, Prisma Overview
- Setting up ExpressJs Templating Engine with Pug
- Create a Utility Class to the Send Emails
- Get the Nodemailer Credentials
- Define the Email Class Attributes
- Create a Nodemailer Transporter
- Create a Method to Generate the Email Templates
- Create a Method to Send the Emails
- Creating the Email Templates with Pug
- Run Prisma Migration to Update PostgreSQL Schema
- Update the User Registration Controller to Send the Emails
- Create a Route Handler to Verify the Email
- Update the Login Controller
Read the entire article here: https://codevoweb.com/crud-api-node-js-and-postgresql-send-html-emails
Articles in this series:
Setup Node.js API with Prisma, TypeScript, and PostgreSQL
API Node.js, TypeScript, Prisma, PostgreSQL: Project Setup
CRUD API with Node.js and PostgreSQL: Send HTML Emails
API with Node.js, Prisma & PostgreSQL: Forget/Reset Password