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
8
votes
3 answers

SMTP using nodemailer in nodejs without GMail

I am using node mailer with GMail smtpTransport = nodemailer.createTransport("SMTP", { service: "Gmail", auth: { user: "myemail ", pass: "mypass" } }); which is working fine, but I want to use my own email server…
Hitu
  • 276
  • 1
  • 2
  • 14
7
votes
3 answers

Nodejs send stream via email

I'm trying to send my stream data via email using Nodemailer but for some reason, the attachment is coming up as 0 kb when I download it and look at its info. How can I properly send the stream & it's data as an attachment? The stream should contain…
user
  • 345
  • 2
  • 8
  • 32
7
votes
4 answers

Not able to send emails from nodemailer with office365 account in nodejs getting error Authentication unsuccessful?

I am using nodemailer to send emails to user with office 365 account email and password are all correct but every time i am getting error - Authentication unsuccessful Error: Invalid login:Authentication…
7
votes
3 answers

Modern Oauth2 authentication for sending mails using Nodemailer nodejs

I am using nodemailer to send email in my nodejs application. var payload = { auth: { user: smtpuser, pass: smtppass }, to : toAddr, from : emailfrom, …
yash dogra
  • 89
  • 1
  • 5
7
votes
1 answer

NodeMailer queuing outgoing email, but email never sends

I'm trying to send an email from my own domain without using an external SMTP server. I'm using NodeMailer's SMTP connection: let options = { secure: true, port: consts.portOut,//465 host: consts.host, //mydomain.com transactionLog:…
now_world
  • 940
  • 7
  • 21
  • 56
7
votes
1 answer

Send email using nodemailer angular 6

I have a bootstrap form for email services for angular 6 app and nodejs, I am using nodemailer for sendemail in my app, unfortunately does not work. I am getting the following error when I submit the form: OPTIONS…
The Dead Man
  • 6,258
  • 28
  • 111
  • 193
7
votes
3 answers

How to properly throttle message sending with nodemailer SES transport?

The nodemailer documentation says: If you use rate or connection limiting then you can also use helper methods to detect if the sending queue is full or not. This would help to avoid buffering up too many messages. It also provides an…
aherve
  • 3,795
  • 6
  • 28
  • 41
7
votes
0 answers

Outlook HTML msg format from Javascript

Is there any pure open source solution to parse Outlook msg format directly from Javascript and or NodeJS? I believe there is a need to support Outlook msg format in nodemailer, which at least parses eml correctly. So far I could not find a better…
Nestor Urquiza
  • 2,821
  • 28
  • 21
7
votes
3 answers

Node js send meeting/calendar invite for gmail

I am trying to send calendar invite using node js. I have tried nodemailer library and is sending mail with calendar invite Like in reference to this question but this is sending invite like but I want send invite like suggest some help if…
Sam
  • 795
  • 2
  • 18
  • 31
7
votes
2 answers

In nodemailer, How to format text email Body

I have text body in nodemailer. I want to format text in email. var mailOptions={ to : data.toAddress, cc : data.ccAddress, bcc : data.bccAddress, subject : data.subject, text : data.message …
Sawan Kumar
  • 327
  • 1
  • 5
  • 13
7
votes
3 answers

Nodemailer is not able send mail using gmail

I am trying to send email through nodemailer but is not able to send email and showing following error. { [Error: Invalid login] code: 'EAUTH', response: '534-5.7.14…
ashishkumar148
  • 975
  • 1
  • 10
  • 26
7
votes
1 answer

How to solve CERT_UNTRUSTED error in nodemailer

I am trying to send an email with nodemailer. I already managed to send it from another host but now I want to send emails from another address. These are the versions of nodemailer I am using (from my package.json): "nodemailer":…
arne.z
  • 3,242
  • 3
  • 24
  • 46
7
votes
2 answers

Amazon SES nodemailer connection failing

I'm using nodejs nodemailer to connect to Amazon SES email service. It all appears simple, but I keep getting the error: "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing…
user3508995
  • 187
  • 1
  • 1
  • 13
6
votes
2 answers

How do I send email from nodemailer in nodejs using gmail?

I followed the documentation but google says the app is less secure than its security level. And there is no option to allow access to such apps anymore. const nodemailer = require('nodemailer'); let mailTransporter =…
codeVibek
  • 106
  • 1
  • 7
6
votes
2 answers

535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully

I'm trying to send email via nodemailer. And sender email is of microsoft azure. But I'm getting error-response: '535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your…
Muskan Bansal
  • 61
  • 1
  • 1
  • 3