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
5
votes
1 answer

Storing password securely nodemailer

I have an app that sends mail using nodemailer. transporter = nodemailer.createTransport({ service: 'Gmail', auth: { user: "email", pass: "what here?" } }); I want to keep the app open source, just for the heck of it (along with not…
Joel Gallant
  • 315
  • 4
  • 21
5
votes
3 answers

How to send a meeting request correctly with nodemailer?

I am trying to use the following code to send out meeting request using nodemailer. The problem I am facing is that the meeting invite is going as an attachment ics file instead of request where one can directly add. I have tried it on multiple mail…
biplav
  • 781
  • 6
  • 13
5
votes
2 answers

sending mail with nodemailer - email from field incorrect

Trying to set up a contact form with nodemailer. Here's what's in my app.js: // EMail configuration var smtpTransport = nodemailer.createTransport("SMTP",{ service: "Gmail", auth: { user: "myemailaddress", pass: "xxx" …
babbaggeii
  • 7,577
  • 20
  • 64
  • 118
4
votes
0 answers

Workmail nodejs nodemailer send emails

Here is what I've tried... const smtpTransport = require('nodemailer-smtp-transport') ; var nodemailer = require('nodemailer') let transporter = nodemailer.createTransport( smtpTransport({ host:…
user11720628
4
votes
1 answer

nodemailer with handlebars not showing styles correctly

I'm sending an email with nodemailer and handlebars, I receive the email correctly but the styles are not applied. This is my code to send email: const hbsConfig = { viewEngine: { extName: '.hbs', partialsDir:…
Jaime Rivera
  • 1,354
  • 5
  • 17
  • 28
4
votes
1 answer

Nodemailer and ical-generator - to send calendar invite

I want to send calendar invite. I'm using Nodemailer and ical-generator to generate ical file. Everything working fine but email doesn't add invite to the calendar automatically instead I get an option to Add to calendar. But I want email to…
Shashank
  • 294
  • 3
  • 13
4
votes
1 answer

How to send an email with test report in Cypress

I am trying to achieve the following: Create a simple test report with only names of tests and statuses (Fail/Pass) Send this report as basic HTML via email. To achieve that, I need: A basic reporter instead of the default Library, which can send…
harmider
  • 373
  • 6
  • 18
4
votes
2 answers

error 550 Domain not allowed in header from

I am trying to get namecheap c-panel email hooked up with my nodemailer server instance but I am unable to find how to do that. here is my nodemailer code let transporter = nodemailer.createTransport({ host: "premium174.web-hosting.com", port:…
JohnSmith
  • 113
  • 5
4
votes
1 answer

Is Nodemailer a free api/library?

Is Nodemailer a free api/library? If it is not free, where can I see the price. How is it different from the free version? I am looking for (free) library or api to send email (company (not gmail) to customer)
test test
  • 63
  • 1
  • 6
4
votes
0 answers

Nodemailer 24 hour sending limit

I have an email account from godaddy hosted on outlook. I'm using nodemailer to automatically send emails from it, using smtpout.secureserver.net. I emailed 25 different people with nodemailer, and not I get this error: "User me@site.com has…
xcodesucks123
  • 424
  • 4
  • 8
4
votes
1 answer

Call same promise inside `Then`

I want to know if you can call the same promise twice like so //receiver is sent if the mail should be sent to someone else and will have a //different email boy const body = (req.body.receiver) === undefined ? 'regular mail': 'admin email…
O'Dane Brissett
  • 1,284
  • 1
  • 8
  • 23
4
votes
1 answer

Nodemailer with amazon WorkMail SMTP interface vs SES

I've been able to send email using Amazon's SES interface with WorkMail, but when trying to use stmp I get an error. Is their advantages to using the SES over smtp? If sticking with SES, should I being using the aws-sdk module? My goal is to create…
Ian
  • 41
  • 5
4
votes
1 answer

MongoError: E11000 duplicate key error collection: test.users index: email1_1 dup key: { email1: null }

any time i try to register a user it gives me this error I checked the db collection and no such duplicate entry exists, let me know what I am doing wrong ? FYI - req.body.email and req.body.password are fetching values. I also checked this post but…
CodaBae
  • 275
  • 2
  • 6
  • 16
4
votes
2 answers

Nodemailer Oauth2 error : unauthorized_client

I'am trying to send mail using Oauth and nodemailer on a nodejs app, I did it without Oauth but my password was wrote in the code so I turn myself to Oauth. I only want to connect myself to send mail in an automatic way. I have settup a project and…
Pilum
  • 51
  • 1
  • 4
4
votes
1 answer

BBC emails not being sent with MailComposer and Nodemailer

I am using Google cloud functions to send emails using Nodemailer. I am using the MailComposer module to send emails with formatting (line breaks and HTML etc). Here is my code: const mailOptions = { from: `${name} joanne@bloggs.com`, …
londonfed
  • 1,170
  • 2
  • 12
  • 27