Send Email via SMTP Server in Node.js using Nodemailer npm

Send Email via SMTP Server in Node.js using Nodemailer npm

In this Post We Will Explain About is Send Email via SMTP Server in Node.js using Nodemailer npm With Example and Demo.Welcome on – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How To send emails using Node.js Example

In this post we will show you Best way to implement Node.js with Nodemailer npm, hear for Emailing in Node.js with Nodemailer with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

In this Node.js POST, We will say you how to send simple email in npm Node.js using Nodemailer create module.
And then This makes it simple easy to send simple emails step by step from node web-application.
After that, You can best way to installed the Nodejs Nodemailer module using some npm command with Node.js
Now, Nodejs Nodemailer is know to licensed under Like as a MIT license.
Then, The most IMP Things is it all the support unicode, that means example you can use any some characters including like as a emoji.
Here, You can step by step send simple Row text as well DOM HTML data content.
After that, You can data embed some images, media in HTML, and also can put some attachments to send messages.
Nodejs Nodemailer more support different types of the transport methods Like as a- SMTP method, method of Sendmail as well as Amazon SES method.
In this Nodejs Nodemailer example, We are sharing simple source code to step by step send email in node web-application using Nodemailer module.

Step 2 : Installation

First step to simple Run following simple command cmd to install step by step Nodejs Nodemailer : Nodejs Installation

npm install nodemailer --save

Step 2 : Require Nodemailer module

Require the Nodemailer module in your js file :

var nodemailer = require('nodemailer');

Step 3 : sendMail function

function sendMail(to,subject,message) 
   var configDataSMTP = {
      service: 'Gmail',
      auth: {
          user: '[email protected]',
          pass: 'PUT_YOUR_PASS'
   var transporter = nodemailer.createTransport(configDataSMTP);
   var realTimeNodeMsgSend = {
      from: '"Sender(Live24u) Name" ', //Live24u sender address
      to: to, //Live24u list of receivers
      subject: subject, //Live24u Subject line
      text: 'Welcome to Live24u ?', //Live24u plaintext body
      html: message //Live24u html body
   transporter.sendMail(realTimeNodeMsgSend, function(error, info){
		//display error
         return console.log(error);
	  //display response
         return console.log(info.response);
var message = '

Live24u is the most popular Programming & Web Development blog. Our mission is to provide the best online resources on programming and web development. We deliver the useful and best tutorials for web professionals — developers, programmers, freelancers and site owners. Any visitors of this site are free to browse our tutorials, live demos and download scripts.

'; sendMail('[email protected]','Welcome to',message);

After that you can simple last step to use above all the npm function in your simple node web-application to successfully send email using best way to Nodemailer.

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example


I hope you have Got What is Send Email From a Node.JS Script Using SMTP Authentication And how it works.I would Like to have Feed Back From My Blog( readers.Your Valuable Feed Back,Any Question,or any Comments about This Article( Are Most Always Welcome.

Leave a Comment