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
4
votes
2 answers

Nodemailer Missing credentials for "PLAIN"

Nodemailer was working correctly for a few months with exactly the same configuration. var smtpTransport = nodemailer.createTransport({ service: "Zoho", auth: { user: environment.smtp.email, password:…
Stepan Rafael
  • 365
  • 2
  • 4
  • 13
4
votes
1 answer

Nodemailer shows emails in the browser instead of sending them

I'm trying to use the email-templates package but I ran into a problem. Everything was working fine until I changed the path from a static file to a url. From then, whenever I try to send an email, it just shows the temp file in the browser instead…
M. Farnik
  • 235
  • 1
  • 3
  • 9
4
votes
0 answers

Nodemailer /send gives 404 error

I'm trying to use nodemailer to send a message from a standard website form to an email address. I have followed this tutorial and everything works on the local server. But when I upload the documentation to my hosting provider I get the following…
4
votes
0 answers

google cloud functions with Handlebar templates and nodemailer throws path noth found for views

I am trying to send custom handlebar templates as email template. The email will be triggered whenever there is an update in a document of a collection. const nodemailer = require('nodemailer'); const hbs =…
4
votes
0 answers

node mailer: Cannot set property mailer of undefined

I am using nodemailer 4.4.2 version and node 7.4.0 When try to run the application i am getting Cannot set property mailer of undefined error in the nodemailer/lib/mailer/index.js file. What is the reason for this issue
selvakumar
  • 634
  • 7
  • 16
4
votes
4 answers

Unable to authenticate outlook address via nodemailer

I am trying to authenticate an outlook email account using nodemailer. But, I continuously get the same message: { Error: Invalid login: 535 5.7.3 Authentication unsuccessful [CY1PR03CA0041.namprd03.prod.outlook.com] at…
dlucci
  • 729
  • 4
  • 9
  • 24
4
votes
1 answer

Send email nodemailer from Outlook365 erro

I'm using the firebase function to trigger the nodemailer and send an email. Using gmail I was successful, however with Outlook365 it does not work. My transporter var transporter = nodemailer.createTransport(smtpTransport({ host:…
4
votes
1 answer

making node.js' nodemailer work with dkim smtp

I have difficulties to set up DKIM signing with node.js and nodemailer. Here is what I got: A regular self hosted SMTP-email like you@yourpersonalwebsite.com on hosteurope.com A domain with DNS settings hosted at inwx.com Node.js 8.4.0 Step 1:…
rcpfuchs
  • 792
  • 1
  • 12
  • 26
4
votes
0 answers

Nodemailer keeps refusing authentication for invalid login (not using gmail)

I'm wrapping my head around the strangest issue ever right now. I'm using nodemailer and postfix to send email. The following code is NOT working, giving me the following error : Error: Invalid login: 503 5.5.1 Error: authentication not enabled …
glemiere
  • 4,790
  • 7
  • 36
  • 60
4
votes
1 answer

Could not send the mail using Nodemailer and Node.js

I could not send mail using Node.js. I am getting the below error. { "error": { "code": "EAUTH", "response": "534-5.7.14
satya
  • 3,508
  • 11
  • 50
  • 130
4
votes
2 answers

Gmail, nodemailer, OATH2 refresh token not working

I've set up Nodemailer to work with Gmail using OAuth2. It works fine until the access token expires. At this point, despite having a refresh token, I get the following error message: { Error: Invalid status code 401 at…
Chris
  • 1,863
  • 5
  • 30
  • 43
4
votes
2 answers

nodemailer gmail connection closed with high number of mails

I have exactly the same issue as this post : Send multipe emails using nodemailer and gmail When sending too many emails with nodemailer and gmail, I get a 421 error, referring to too many concurrent sessions. What can i do to avoid opening too many…
zevanb
  • 41
  • 1
  • 4
4
votes
1 answer

Email Sending app using React and Node js

I am creating an Email sending app using React and Node js. I am using Nodemailer for sending the emails. To get rich HTML and CSS in the email body, I am using React js to construct the email body. So, once the body is rendered by React js, it can…
Man utd
  • 131
  • 2
  • 13
4
votes
1 answer

nodemailer mail options from: field is always sending mail from the email used in the smtpTrans auth object

I am using nodemailer to do contact forms and mailing things. But when I try to set the req.body.email as the from: email it just uses the authentication email instead. So all emails I receive are from: me@me.com to: me@me.com instead of from:…
lopu
  • 67
  • 7
4
votes
1 answer

How can I use nodemailer with Cloud Functions for Firebase?

I'm trying to use nodemailer in a Cloud Functions for Firebase but keep getting errors seeming to be that the smpt server cant be reached or found. Iv'e tried gmail, outlook and a normal hosted smpt service. It works well from my local node…
Tim
  • 1,045
  • 14
  • 23