Learn how to send transactional emails using Plunk with Nodemailer
nodemailer
, and store sensitive values inside a .env
file.
@types/nodemailer
as well:
.env
file, add the following values to your env file:
transporter
which holds the connection information and decide what secure method to use:
587
and set secure
to false:
465
and set secure
to true:
transporter
has been initalised, we can send some mail!