Sending emails in Node.js?


Question

I recently started programming my first node.js. However, I discovered that I am unable to create a contact me form that sends straight to my email since I can't find any modules from node that is able to send emails.

Does anyone know of a node.js email library or an sample contact form script?

1
274
11/6/2010 3:22:23 PM

Accepted Answer

node-email-templates is a much better option: https://github.com/niftylettuce/node-email-templates

it has support for windows as well

137
8/6/2012 11:39:13 PM

Nodemailer is basically a module that gives you the ability to easily send emails when programming in Node.js. There are some great examples of how to use the Nodemailer module at http://www.nodemailer.com/. The full instructions about how to install and use the basic functionality of Nodemailer is included in this link.

I personally had trouble installing Nodemailer using npm, so I just downloaded the source. There are instructions for both the npm install and downloading the source.

This is a very simple module to use and I would recommend it to anyone wanting to send emails using Node.js. Good luck!


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon