Questions tagged [nodemailer]

Easy to use module to send e-mails with Node.JS

Nodemailer is an easy to use module to send e-mails with Node.JS (using SMTP or sendmail or Amazon SES) and is unicode friendly.

Nodemailer is Windows friendly, you can install it with npm on Windows just like any other module, there are no compiled dependencies. Use it from Azure or from your Windows box hassle free.

Installation:-

Install through NPM

npm install nodemailer

Useful Links:

2466 questions
13
votes
1 answer

Error: Hostname/IP doesn't match certificate's altnames node.js

i want tom send email from my application using nodemailer , my code looks like this : var smtpTransport = nodemailer.createTransport(smtpTransport({ pool: true, host: 'smtp.myemailserver.com', port: 587, auth: { …
sarya
  • 141
  • 1
  • 1
  • 4
13
votes
2 answers

node.js nodemailer gmail error

Im trying to send a email using node.js - nodemailer module , my whole code looks like var http=require("http"); var nodemailer=require("nodemailer"); http.createServer(function(req,res){ res.writeHead(200, {"Content-Type": "text/plain"}); …
Darlyn
  • 4,715
  • 12
  • 40
  • 90
13
votes
2 answers

Post Angular form data to Node.js with Sendgrid/Nodemailer

I have followed this example to post data from my Angular app to Node.js to post a webform to Sendgrid. This works fine after some changes and thanks a lot for the quickstart. Posting my form data to Sendgrid is working now! For this project i'm…
Simon Janssen
  • 187
  • 2
  • 9
13
votes
3 answers

External HTML file with CSS as email content in nodemailer

Does anyone know how to tell Node.js´ module nodemailer to use an external HTML file (with links to stylesheets) as email content? I am able to type in HTML tags as email content but I prefer loading complete HTML files. I´m using nodemailer…
wurstbrotrest
  • 329
  • 1
  • 7
  • 17
12
votes
2 answers

Nodemailer - Works locally but not on production

https://gist.github.com/anonymous/ba82f74071cc38a0700b Before changing some settings, e.g. host and port, it was working fine locally, but just won't work on production. Anyone know why? Thanks
Mod Mark
  • 199
  • 1
  • 2
  • 7
12
votes
4 answers

ETIMEDOUT connect error using nodemailer in Nodejs Openshift application

I'm facing some problems using the nodemailer module in my node.js single gear non-scalable application in Openshift. As the documentation suggested, I initialized the transporter object and used the sendMail function. A simplified version of my…
matt.kiwi
  • 211
  • 1
  • 2
  • 6
12
votes
4 answers

Error sending email using nodemailer via Office365 smtp (MEANjs scaffold)

I'm trying to use Office365 SMTP to send email using Nodemailer (in a MEANjs scaffold), but I get the following error: [Error: 140735277183760:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown…
Prasad Silva
  • 1,020
  • 2
  • 11
  • 28
11
votes
0 answers

Receive bounced emails using Nodemailer

I am new to the SMTP related concepts. I am currently developing a nodejs email client using Nodemailer. In which, I am unable to receive the bounce back emails (NDRs). My queries below, To achieve this should I configure DSN or envelope? I think…
Praveen Kumar
  • 977
  • 3
  • 12
  • 26
11
votes
1 answer

Assignment to constant variable

i try to read the user input and sent it as a email. but when i run this code it gives me this error: Assignment to constant variable. Any help will be appreciate var mail= require('./email.js') var express = require('express') var router =…
Lee Cardo
  • 123
  • 1
  • 2
  • 8
11
votes
5 answers

nodemailer 2.x configuration for Office 365 direct send

I'm using nodemailer v2.4.2 with node.js v4.4.7 and I want to send emails from my server via my Office 365 SMTP mail server. I'm using the smtpTransport v2.5.0 with this configuration: var transporter = nodemailer.createTransport(smtpTransport({ …
David Williamson
  • 387
  • 1
  • 5
  • 18
11
votes
1 answer

verify if email is delivered successfully nodemailer (sails.js)

I'm using nodemailer module to send email in my sails.js project. Now i'm wondering if there is a way that i could know if the email is delivered successfully or the email is somehow failed due to some attachment or may be wrong email address. how…
Ahsan Hussain
  • 952
  • 4
  • 21
  • 42
11
votes
1 answer

how to receive email using nodemailer

I am using node.js and nodemailer and I am able to send email to a dedicated gmail account. However, I want to connect to the gmail account as a client and receive all emails that are sent to that gmail account. All of the examples here on stack…
Andres Gonzalez
  • 111
  • 1
  • 1
  • 3
11
votes
1 answer

What is correct way of using Nodemailer in expressjs?

I am trying to use nodemailer in expressjs app. Should I keep creating of transport object out of route handler or creating transport object inside route handler is just fine? var express = require('express') , app = express() , nodemailer =…
Yalamber
  • 7,360
  • 15
  • 63
  • 89
11
votes
7 answers

Sending an email to myself but letting me reply back to another email

I'm sending an email to myself using a module (nodemailer) on my web application's platform (node.js) from someone using my web app's contact page. Since, I'm sending an email to myself, if I reply to the email, I'll be sending an email to myself…
Sam
  • 6,414
  • 11
  • 46
  • 61
10
votes
0 answers

421 4.3.0 Temporary System Problem. Try again later (10)

I am using nodemailer npm package with gmail as a service in nodejs. For some of the emails I am getting below error, Data command failed: 421 4.3.0 Temporary System Problem. Try again later (10). c124sm10820896qke.13 - gsmtp at…
Aditya yadav
  • 119
  • 1
  • 7