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

send emails from MY gmail account with OAuth2 and nodemailer

I want to send emails from my gmail address through my own server. I'm using nodemailer and using account credentials is flaky, and often times doesn't work and leads to this thread I've implemented everything on that thread many times, and still…
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
4
votes
2 answers

NodeJS sending e-mails with a delay

I'm using Nodemailer to send mailings in my NodeJS / Express server. Instead of sending the mail directly I want to wait 20 minutes before sending the mail. I think this feels more personal then sending mail directly. But I have no idea how to…
ronnyrr
  • 1,481
  • 3
  • 26
  • 45
4
votes
3 answers

Nodemailer error when required

My resume website is almost done, I'm just finalizing a "Contact me" form that should send me an e-mail with some plain text. Here's what it looks like in Jade: div.contact-email-box form(id='contact-form' action='/' method='post') h3…
Christopher
  • 139
  • 3
  • 11
4
votes
0 answers

How to wire up an Angular 2 Http.post call to Node.js backend and send NodeMailer Email

I am brand new to using node.js on the backend and still wrapping my head around building a REST API and making calls on my front end that hit my backend. With that said, I am trying to get my Angular 2 app to send an email using nodemailer. If I…
4
votes
1 answer

Send email with attachment with the loopback email datasource

Is it possible to send an attachment with the loopback email datasource? All I can see in the source documentation are these fields: @property {String} to Email addressee. Required. @property {String} from Email sender address. …
dagda1
  • 26,856
  • 59
  • 237
  • 450
4
votes
1 answer

Bulk email sending usiing node.js

I am trying to make a small dashboard where i can send bulk email using my own SMTP servers. I want to use node for this, can anyone guide from where to start i want to send mails from different SMTP servers.
Firdoesh
  • 73
  • 1
  • 2
  • 9
4
votes
1 answer

Nodemailer - How to handle enetunreach error

I have a nodejs application which uses the nodemailer plugin to send out emails. This works 99.99% of the time but yesterday the application hung up with following error in the PM2 logs. mod.mailer: Error: connect ENETUNREACH…
Dennis Bauszus
  • 1,624
  • 2
  • 19
  • 44
4
votes
2 answers

Unsupported configuration, downgrade Nodemailer to v0.7.1

I'm using Nodemailer 2.6.4 on Node 6.9.1 var nodemailer = require("nodemailer"); var wellknown = require('nodemailer-wellknown'); var transporter = nodemailer.createTransport("SMTP",{ service: "yahoo", auth: { user:…
realtebo
  • 23,922
  • 37
  • 112
  • 189
4
votes
3 answers

Sending a PDF created dynamically as an attachment using PDFKit in a nodejs application

I am trying to create a pdf dynamically using PDFkit and want to send it as an attachment in a email. Following this http://pdfkit.org/demo/browser.html example and this https://nodemailer.com/using-attachments/ documentation I wrote the following…
ASD
  • 107
  • 2
  • 11
4
votes
2 answers

Nodemailer multiple recipients

I'm using Nodemailer with mailgun to send emails to an array of users. I'm generating the HTML to send for the email with React. I want to pass in the current "to" in my emails array to the React component so I can use it within the React component.…
Jon
  • 5,945
  • 4
  • 21
  • 31
4
votes
1 answer

Error:Invalid login 535 5.0.0 authentication failed

I am trying to do outlook calender event for that i used mailing service and i am using express frame work and mongoose queries in my project Here is my code below: var _ = require('lodash'); var Outlook = require('./outlook.model'); var…
Shikha thakur
  • 1,269
  • 13
  • 34
4
votes
1 answer

Can I use nodemailer in browser?

I've created a simple react redux app (using webpack) with a contact form which when the user clicks submit I want to generate and send an email. To do this I have been trying to use nodemailer like so: import nodemailer from…
user843337
4
votes
1 answer

AWS Lambda not firing Email via nodemailer, but does in the local development environment

I'm working on a aws-lambda which is supposed to shoot mail when an event is triggered. I using nodejs for this and below is the code: "use strict"; exports.sendEmail = function(event, context, callback) { var config = require('./config'); …
4
votes
2 answers

PDF Attachment NodeMailer

thanks in advance for your responses. I have written some code that uses nodemailer 0.7.1.It sends the email and attaches a pdf to the email. However,the .pdf attachment either corrupts itself when encoding or truncates or something. The reason I…
Tyson Graham
  • 227
  • 3
  • 9
4
votes
3 answers

Accessing SMTP server with AUTH NTLM from Node.js

I'm trying to access a SMTP server with AUTH type of NTLM. I'm using nodemailer and nodemailer-smtp-transport as such: var config = require('./config.json'); var nodemailer = require('nodemailer'); var smtpTransport =…
davidx1
  • 3,525
  • 9
  • 38
  • 65