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
5
votes
0 answers

Getting unrecognized authentication type error with node.js nodemailer module

I am trying to connect to a microsoft mail server, with node.js nodemailer module. But I get an error. // create reusable transporter object using the default SMTP transport let transporter = nodemailer.createTransport({ host:…
omega
  • 40,311
  • 81
  • 251
  • 474
5
votes
3 answers

nodemailer and zoho email issue '530 Must issue a STARTTLS command first.'

I am using the latest version of nodemailer version 4.1.0. I tried using the sample code available here https://nodemailer.com/smtp/ Here is my code let transporter = nodemailer.createTransport({ host: 'smtp.zoho.com', …
Rahul Ganguly
  • 1,908
  • 5
  • 24
  • 36
5
votes
2 answers

Nodemailer with ZOHO mail

I'm trying to setup ZOHO mail with Nodemailer. The mail is configured correctly and I'm using following code to send the mail: var transporter = nodemailer.createTransport({ host: 'smtp.zoho.eu', port: 465, secure: true, //ssl auth:…
Nicholas
  • 1,189
  • 4
  • 20
  • 40
5
votes
2 answers

Node-RED and nodemailer - Error: unable to verify the first certificate

I am trying to make something very basic work and it just isn't working for me. I have a simple Node-RED flow with an inject input node and an email output node: The properties of the email node look like this: The error says: "7/28/2017,…
Eric
  • 51
  • 1
  • 2
5
votes
1 answer

Send email to localhost smtp server in Node.js

I'm using nodemailer to sends emails: var nodemailer = require('nodemailer'), config = require('./mailer.conf'); var smtpTransport; console.log('Creating Transport'); //smtp transport configuration var smtpTransport =…
Rafael Angarita
  • 777
  • 10
  • 27
5
votes
0 answers

Why timeout occurs while sending email using nodemailer when amazon ec2 server is used

I am using nodemailer to send email from ec2 server but it is getting timeout var nodemailer = require('nodemailer'); var smtpConfig = { service : 'Gmail', secure : true, auth : { …
5
votes
1 answer

unable to send html text using nodemailer

I am unable to send html text in mail using nodemailer. exports.send = function(req, res) { console.log(req.query); var mailOptions = { to: req.query.email, subject: req.query.sub, text: 'Date of Interview: ' + req.query.dateOfInterview+…
swathi anupuram
  • 795
  • 1
  • 7
  • 14
5
votes
2 answers

node.js Nodemailer array of objects to CSV file as attachment in email

I'm sending an email in node.js using nodemailer module. I have an array of objects that I'm trying to turn into a CSV file and attach it to the email. I am able to successfully send an email, but the CSV attachment doesn't populate correctly…
user6101759
5
votes
3 answers

Nodemailer / Sendgrid with apikey

I am trying to get a simple contact form up and running in node.js with sendgrid using an apikey. It's unclear where I am going wrong. I tried the following: 1. var options = { auth: { api_user: 'xjh-4XqZGH6$HLT-IEOPFG', api_key:…
Mike
  • 3,775
  • 8
  • 39
  • 79
5
votes
2 answers

Node Mailer Error:"Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it" in localhost

I am new to nodejs and try to send mail from nodemailer module but it has error i.e "Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it". Here is my code:- var nodemailer = require('nodemailer'); var mailTransport =…
vineet
  • 13,832
  • 10
  • 56
  • 76
5
votes
3 answers

Started to get error using nodemailer and mandrill smtp. CERT_HAS_EXPIRED Error: certificate has expired

We are using nodemailer and mandrill smtp. Started today we got this error for few different web services Error: { [Error: certificate has expired] code: 'CERT_HAS_EXPIRED' } It happens for localhost and remote servers for different web…
Nedudi
  • 5,639
  • 2
  • 42
  • 37
5
votes
2 answers

How to downgrade this node.js module to specific version and prevent automatic upgrade later?

I am using node.js Nodemailer module and encountered the following error; [Error: Unsupported configuration, downgrade Nodemailer to v0.7.1 or see the migration guide https://github.com/andris9/Nodemailer#migration-guide] I looked at my…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
5
votes
6 answers

Promisify Nodemailer with bluebird?

The nodemailer author has made clear he's not supporting promises. I thought I'd try my hand at using bluebird, but my attempt at it doesn't seem to catch any errors that Nodemailer throws: var nodemailer = require('nodemailer'); var Promise =…
fanhats
  • 777
  • 2
  • 10
  • 20
5
votes
1 answer

Nodemailer's sendMail function returns "undefined"

Hi! I have the following code. The commented lined never get executed and info.response returns "undefined". Could you help me figure out why it's returning "undefined" and why the commented parts don't get executed, please? Thank you very…
Chul Kwon
  • 167
  • 1
  • 3
  • 11
5
votes
3 answers

Why is OAuth2 with Gmail Nodejs Nodemailer producing "Username and Password not accepted" error

OAuth2 is producing "Username and Password not accepted" error when try to send email with Gmail+ Nodejs+Nodemailer Code - Nodejs - Nodemailer and xoauth2 var nodemailer = require("nodemailer"); var generator =…
eddyparkinson
  • 3,680
  • 4
  • 26
  • 52