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

Send Email Using Microsoft 365 Email Server In NodeJS

let transporter = nodemailer.createTransport({ service: "Outlook365", host: 'smtp.office365.com', port: 587, tls: { ciphers:'SSLv3' }, auth: { user: 'username', pass: 'password' } }); I have an…
6
votes
1 answer

Openssl issue when sending email through AWS SES

Update: If I follow the instructions from Using the Command Line to Send Email Using the Amazon SES SMTP Interface, I can get the email to send perfectly from my local and my ec2 instance. We're using nodemailer to send email through SMTP. When we…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
6
votes
0 answers

nodemailer transporter.templateSender function is undefined

Problem description Hello, I am trying to use html templates using nodemailer's external renderer functionality. I therefore import nodemailer and EmailTemplates for my template engine that will be pug. I create my transporter with the due…
Jaro
  • 1,587
  • 5
  • 20
  • 39
6
votes
2 answers

How do I send a html file using nodemailer

I am sending emails using nodemailer, but I wanna know how to send a static HTML file from a directory. let transporter = nodemailer.createTransport({ host: auth.host, port: auth.port, secure: auth.secure, auth: { …
Kunal Shukla
  • 81
  • 1
  • 2
  • 7
6
votes
2 answers

React nodemailer net.isIP is not a function

I am trying to make a contact page with react and I'm struggling with sending the e-mail part. I'm trying to use nodemailer, and my code for that is: var nodemailer = require('nodemailer'); var xoauth2=require('xoauth2'); var transporter =…
Roland
  • 885
  • 3
  • 12
  • 16
6
votes
4 answers

Zoho mail says 535 Authentication Failed in Node Js

I am creating an Application using Node Express and MongoDB. After user creation a successful mail want to send to the user. I am using zohomail and can able to use those username and password to login zohomail online. But when I try to send mail I…
test team
  • 677
  • 3
  • 12
  • 27
6
votes
1 answer

Can't setup nodemailer with outlook

I'm using "nodemailer": "^4.6.8" and "nodemailer-smtp-transport": "^2.7.4". I am developing contact form on my site and trying to send form mail over the outlook. From some examples over the internet I tried this code, where xxxxx@hotmail.com is my…
Dmitry Malugin
  • 882
  • 1
  • 7
  • 25
6
votes
4 answers

Heroku crash over and over by POST request, multer or nodemailer H=18

My deployment on Heroku keep crashing on the POST request when I send the mulitpart form. I can't see in the logs if it's on the upload (multer) function, save (mongoose) function or sendMail (nodemailer) function. The only thing I see in the logs…
6
votes
1 answer

Using Nodemailer, how to send email message using an alias gmail account? or a group google suite server account?

Using Nodemailer, how to send email message using an alias gmail account? or a group google suite server account? Like for example: My real account : myaccount@domain.com I will send a message via my alias account or group account using…
Richard Vergis
  • 1,037
  • 10
  • 20
6
votes
2 answers

Nodemailer yahoo incorrect login

I want to send emails from my NodeJs app. const nodemailer = require('nodemailer'); const senderMail = "myemail@yahoo.com"; const emailTransporter = nodemailer.createTransport({ service: 'yahoo', auth: { user: senderMail, pass:…
Question3r
  • 2,166
  • 19
  • 100
  • 200
6
votes
2 answers

Send email from server via a G Suite email address

I am attempting to send an email from a node.js server using nodemailer I currently have a domain name registered with Google Domains and with this I have a G Suite instance setup to provide me with an email server. I have an email setup:…
mwild
  • 1,483
  • 7
  • 21
  • 41
6
votes
2 answers

receive mail with nodemailer without setting "Allow less secure apps to access"

I want to ask something about nodemailer, i make code like Var client = nodemailer.createTransport ({ Service: 'gmail', Auth: { User: 'example@gmail.com', // Your email address Pass: '123' // Your password}, Tls: {rejectUnauthorized:…
6
votes
3 answers

Text to HTML conversion in Node Js

I am using nodemailer to send mail from node server. I am getting the content for this mail from MSSQL SQL server which is formatted in plain text format, which meansa there are new line characters in it, however when I send it using nodemailer the…
Jeet
  • 5,569
  • 8
  • 43
  • 75
6
votes
2 answers

Send Nodemailer e-mail with Namecheap email

I have been successful connecting a Gmail account with Xoauth, but I recently acquired a Namecheap privateemail account and can't for the life of me figure out how to set it up. This is the code that I have: var smtp = nodemailer.createTransport({ …
Minterly
  • 63
  • 1
  • 4
6
votes
5 answers

Sending mail in node.js using nodemailer

I am trying to send mail in node.js using Nodemailer but it shows some error like { [Error: self signed certificate in certificate chain] code: 'ECONNECTION', command: 'CONN' } My node.js code is var express = require('express'); var app …
Kevin
  • 653
  • 2
  • 13
  • 34