Set up a local SMTP server using node.js.
Refer to this website for more information concerning email sending using node.js.
Learn how to set up a local SMTP server on here. This module does not make any email deliveries by itself. smtp-server allows you to listen on ports 25/24/465/587 etc. using SMTP or LMTP protocol and that’s it. Your own application is responsible of accepting and delivering the message to destination.
smtp-server module is designed to implement SMTP protocol which allows the client to communicate with the server. You can refer to web page to learn more about SMTP protocol specifications and how to use telnet to communicate with specified servers directly. But it doesn't actually send mails to the recipient addresses after completing the communication successfully.
So we use module to just send mails without setting up a SMTP server.