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:

1884 questions
130
votes
20 answers

Nodemailer with Gmail and NodeJS

I try to use nodemailer to implement a contact form using NodeJS but it works only on local it doesn't work on a remote server... My error message : [website.fr-11 (out) 2013-11-09T15:40:26] { [AuthError: Invalid login - 534-5.7.14…
tonymx227
  • 4,521
  • 15
  • 42
  • 76
59
votes
7 answers

POST request not allowed - 405 Not Allowed - nginx, even with headers included

I have a problem in trying to do a POST request in my application and I searched a lot, but I did not find the solution. So, I have a nodeJS application and a website, and I am trying to do a POST request using a form from this site, but I always…
AndBecaPine
  • 1,175
  • 2
  • 11
  • 26
46
votes
8 answers

Username and Password not accepted when using nodemailer?

This is my settingController: var sendSmtpMail = function (req,res) { var transport = nodemailer.createTransport({ service:'gmail', auth: { user: "asdfqweerrccb@limitlesscircle.com", pass: "qwerr@wee" } …
uma raja
  • 523
  • 1
  • 4
  • 7
46
votes
4 answers

how to show all console.log from node.js in heroku?

I have deployed a node.js application to node.js but not able to see the complete console.log statements from my app. I am using: heroku logs Some of the logging is shown but looks like it is not the complete logs. Is there a node.js package to…
Pindakaas
  • 4,159
  • 15
  • 45
  • 80
40
votes
9 answers

Pass variable to html template in nodemailer

I want to send email with nodemailer using html template. In that template I need to inject some dynamically some variables and I really can't do that. My code: var nodemailer = require('nodemailer'); var smtpTransport =…
Wacław Łabuda
  • 405
  • 1
  • 4
  • 5
40
votes
2 answers

Nodemailer/Gmail - What exactly is a refresh token and how do I get one?

I'm trying to do a simple contact form in a node app, using nodemailer. I want all the msg to be sent from a gmail account I made for this purpose, to my personnal mail. on the client side, all I do is to get the name/mail/message of the customer…
Radioreve
  • 2,611
  • 2
  • 16
  • 28
36
votes
9 answers

Sending email via Node.js using nodemailer is not working

I've set up a basic NodeJS server (using the nodemailer module) locally (http://localhost:8080) just so that I can test whether the server can actually send out emails. If I understand the SMTP option correctly (please correct me if I'm wrong), I…
Sprout Coder
  • 2,860
  • 9
  • 30
  • 47
35
votes
9 answers

Sending email to multiple recipients via nodemailer

I am trying to send email to multiple recipients. For this I have created an array of recipients, but with my code I am only able to send mail to last email ID of the array three times. What's wrong with my code? var nodemailer =…
Atul Sharma
  • 353
  • 1
  • 3
  • 4
26
votes
8 answers

node.js email doesn't get sent with gmail smtp

I'm trying to send the email gmail smtp but I'm getting the error: My email and password is correct I'm using the nodemailer for sending the mail; var nodemailer = require('nodemailer'); // create reusable transporter object…
Vishnu Mishra
  • 2,768
  • 2
  • 19
  • 32
25
votes
3 answers

How to change the "from" field in nodemailer?

Disclaimer: I'm not very good with technical email aspects. So I've setup up a free zoho mail account which basically is just an mail server for my domain. This kinda works via mx record forwarding or something, I'm not entirely sure how it…
boop
  • 6,033
  • 9
  • 37
  • 76
24
votes
11 answers

Missing credentials for "PLAIN" nodemailer

I'm trying to use nodemailer in my contact form to receive feedback and send them directly to an email. This is the form below.
igolo
  • 241
  • 1
  • 2
  • 4
24
votes
8 answers

How to attach file to an email with nodemailer

I have code that send email with nodemailer in nodejs but I want to attach file to an email but I can't find way to do that I search on net but I could't find something useful.Is there any way that I can attach files to with that or any resource…
DanialV
  • 373
  • 1
  • 2
  • 7
23
votes
4 answers

nodemailer throws error Invalid login: 534-5.7.14

I found this error while i'm trying to send an email from one Gmail account to another. How to solve this error ? Help me on it. There were an error: Invalid login: 534-5.7.14 Please log in via 534-5.7.14 your web browser and then try again.…
sways
  • 231
  • 1
  • 2
  • 7
23
votes
4 answers

Embed image in email body nodemailer nodejs

I am following the approach used in the nodemailer community site but I cannot seem to get it to work as I am getting the error Failed to send email { Error: ENOENT: no such file or directory, open './rello-logo-full-svg.svg' errno: -2, code:…
teebo
  • 1,012
  • 1
  • 11
  • 34
23
votes
3 answers

Sending emails using Mailgun with NodeMailer package

A couple of days ago I realized that Google has changed the security of gmail accounts, particularly for the possibility of sending emails from applications. After Googling around for a while I couldn't find a fix for it. So, I resorted to using…
joque
  • 793
  • 2
  • 7
  • 13
1
2 3
99 100