Nodemailer is a module for Node.js applications to allow easy email sending. It is a single module with zero…