Member-only story
Use Nodemailer to send an email
3 min readJun 8, 2022
Press enter or click to view image in full size![Use Nodemailer to send an email]()
In this blog, we will learn how to send emails using Nodemailer. This is a module that allows us to easily send emails in NodeJS applications.
What is Nodemailer?
- Nodemailer is a simple module to send emails for NodeJS applications.
- It is a single module with zero dependencies.
- Using Nodemailer, we can send different types of data through the emails like plain text, HTML content, etc.
- We can also attach pdf, word documents to our email.
- It uses different types of transport methods like SES transport, SMTP transport, etc. SMTP transport method is used as default transport.
- It focuses heavily on Security.
- It has Unicode support for any characters, including emojis.
- It has OAuth2 authentication.
Limitations
- It requires NodeJS version 6.0.0 or newer.
- Bulk emails are not allowed to be sent.
Implementing Nodemailer
Prerequisites
- NodeJS v6.0.0 or newer
