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
0
votes
0 answers

Having trouble sending email with nodemailer and nodejs

postman screenshot terminal in VS Code Here is my code for sendEmail.js: const nodemailer = require("nodemailer"); const sendEmail = async (email, subject, text) => { try { const transporter = nodemailer.createTransport({ …
0
votes
1 answer

How to send multiple req.body inputs in a nodemailer email?

I am building a contact form with multiple input lines, and would like information from the form to be sent to my email address. For instance, I have a line for the user's email address, a line for the user's budget, and a line for the user's city.…
0
votes
1 answer

How to generate unique random emails with nodemailer

I would like to use nodemailer in a few tests to be able to pragmatically test the contents of an email that is sent. So far, its working great but there is one issue I haven't been able to solve. I am using the createTestAccount from the Javascript…
Charklewis
  • 4,427
  • 4
  • 31
  • 69
0
votes
1 answer

Nodemailer sending attachment using sendinblue

I'm using React-Bootstrap but it is not allowing me to send attachments. It was working before on Sendinblue. Complaint.JS import React, { useState } from "react"; import { Col, Container, FloatingLabel, Form, Row, Button, } from…
Terry Hunt
  • 41
  • 8
0
votes
1 answer

Where do I get user and pass for email form api setup?

I am trying to get this form working in Nextjs using 'React Hook Form'. So far I think everything is okay, but I need to know where to get the 'user' and 'pass' for the API to send the information in the form. It is probably a stupid question but…
Alex Cotton
  • 3
  • 1
  • 2
0
votes
1 answer

How to solve "Error: Timed out while connecting to server" using ethereal email in Cypress

I am testing my project using Cypress, and to receive emails (on registering as a new user for example) I use ethereal email. The tests used to work fine before, but today no imap connection seems to get established. Here is the code for…
Hesham Moneer
  • 240
  • 1
  • 17
0
votes
1 answer

How to get a response from nodemailer using netlify functions?

I am using netlify functions to send an email from the frontend and it works fine... as in it does send the email. However on the clientside (browser) I can't get any response. I need a basic response that would allow me to do a if…
Alim Bolar
  • 479
  • 4
  • 17
0
votes
1 answer

Error: Invalid login: 534-5.7.9 Application-specific password required. Learn more at

Since google is removing less secure app mode, I'm changing the password settings for my app (which is written in flutter/Firebase) from the actual google password, to a password which I generate inside the setting of my google account to give full…
Michael m.
  • 161
  • 1
  • 3
  • 13
0
votes
1 answer

alternative to sending email using gmail with firebase function

I recently got that email from Google which says that as the beginning of 30.05.2022, we will not be able to use "less secure apps" options anymore. I'm using this option to sending emails with firebase function combined with nodemailer, as…
Michael m.
  • 161
  • 1
  • 3
  • 13
0
votes
0 answers

How to check Nodemailer's outgoing mail log?

I'm using Nodemailer in my Ubuntu 20.04 environment with NodeJS and a React app. I use Nodemail for account verification and password reset tokens and everything works (for me). A customer tells me he doesn't receive an account verification email.…
Peter Boomsma
  • 8,851
  • 16
  • 93
  • 185
0
votes
1 answer

UnhandledPromiseRejectionWarning: Error: Not Found While sending email from Nestjs

I am trying to develop a mail sending module in my NestJs project. when I send the mail through my local machine it works fine. But when it goes to the server (digital-ocean droplet) it throws the following error and it does not send any email…
0
votes
1 answer

How to send base64 pdf code as attachment through nodemailer/mailgun in nodejs?

I've tried all the stack codes I've found here: filename: 'my-file.pdf', content: Buffer('base64code', 'base64'), contentType: 'application/pdf' filename: 'your.pdf', content: 'encodedpdfstring',…
0
votes
1 answer

How to send attachment from input to an Email using ReactJS

I'm trying to use Nodemailer for this, but I can't use an attachment in the input, or I don't know how https://nodemailer.com/message/attachments/ please help, anything is helpful for me postuler.js let details = { name: name.value, prenom:…
0
votes
1 answer

Nodemailer: mail command failed

I keep getting the error: Mail command failed: 554 5.7.8 User [contact@example.com] not authorized to send on behalf of This is my code: api/contact.js import nodemailer from "nodemailer" export default async (req, res) => { …
Steve
  • 37
  • 5
0
votes
0 answers

Nodemailer sends emails but they are not received

I am using the nodemailer module to send emails through my gmail account. The problem i am facing is that they are sent from my account but never received by the other mail. Whats more confusing to me is that when I send the mail to the same mail as…
zitzennuggler
  • 106
  • 1
  • 6
1 2 3
99
100