Comments (6)
Hi,
could you set debug:true and report the output log back to here? This should show a bit better where the sending fails.
{
host:"smtp.gmail.com",
user: ....
debug: true
}
from nodemailer.
Ha, yes, thanks for that. Here's the response:
RECEIVE (1):
└──"502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n" ""
from nodemailer.
Here's the full thing. I've stripped away parts that I consider sensitive. Please tell me if you need something I've omitted.
CONNECTION (1): 220 mx.google.com ESMTP p24sm599286bkw.41
Connection established! (1)
SEND (1):
└──"EHLO [127.0.0.1]\r\n"
RECEIVE (1):
└──"250-mx.google.com at your service, [93.86.179.167]\r\n250-SIZE
35882577\r\n250-8BITMIME\r\n250-AUTH
LOGIN PLAIN XOAUTH\r\n250 ENHANCEDSTATUSCODES\r\n" ""
Routing Data (1)
SEND (1):
└──"AUTH PLAIN .... ==\r\n"
RECEIVE (1):
└──"235 2.7.0 Accepted\r\n" ""
Routing Data (1)
SEND (1):
└──"MAIL FROM:<[email protected]>\r\n"
RECEIVE (1):
└──"250 2.1.0 OK p24sm599286bkw.41\r\n" ""
Routing Data (1)
SEND (1):
└──"DATA\r\n"
RECEIVE (1):
└──"503 5.5.1 RCPT first. p24sm599286bkw.41\r\n" ""
Routing Data (1)
SEND (1):
└──"X-Mailer: Nodemailer (0.1.22; +http://www.nodemailer.org)\r\nDate:
Fri, 29 Jul 2011 14:51:41 GMT\r\n
From: \"Herd Hound Team\" <[email protected]>\r\n
Subject: [Herd Hound] Welcome to Herd Hound!\r\n
MIME-Version: 1.0\r\n
Content-Type: multipart/alternative;\r\n
boundary=\"----NODEMAILER-?=_2-1311951101991\"\r\n\r\n"
SEND (1):
└──"------NODEMAILER-?=_2-1311951101991\r\nContent-Type: text/plain;
charset=UTF-8\r\nContent-Transfer-Encoding: quoted-printable
MESSAGE BODY
RECEIVE (1):
└──"502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1
Unrecognized command. p24sm599286bkw.41\r\n" ""
from nodemailer.
I see what the error is:
RECEIVE (1):
└──"503 5.5.1 RCPT first. p24sm599286bkw.41\r\n" ""
I had a silly bug that was stripping the recipient. I think Nodemailer should have caught 503 and reported it in errors. Maybe even throw prematurely on missing recipient address?
from nodemailer.
Yeah, you're right, there should be some kind of check if at least one address exists in To, Cc or Bcc field.
from nodemailer.
Yah, adding the recipient did it. Thanks for helping me troubleshoot this.
from nodemailer.
Related Issues (20)
- Unable to Receive signup emails for my application for other domains other than Microsoft HOT 4
- Close previous connections HOT 1
- Fails to resolve dependencies: webpack < 5 used to include polyfills for node.js core modules by default. HOT 2
- icalEvent option producing incorrect attachment headers HOT 2
- Empty email body in Apple/iOS Mail with ical and attachments HOT 4
- Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator HOT 2
- email added to my imap sent folder displays symbols instead of Arabic characters HOT 1
- No Newline Processing with Raw Attachment HOT 2
- Unhandled errors in attachements HOT 4
- Nodemailer doesn't work on Cloudflare Workers because it uses Built-in node modules without `node:` prefix HOT 11
- Node-mailer: Problem with rendering node mail images in the body. HOT 1
- Not working on serverless edge functions HOT 7
- Unable to use with Brevo(aka send in blue) | Nextjs 14 HOT 1
- Sonatype reports 6.9.9 as vulnerable due to resolveContent() function of the lib/shared/index.js file HOT 1
- Sending mail using nodemailer is slower HOT 3
- ReDoS when try to send a specially crafted email HOT 2
- Connection Refused on CPanel HOT 2
- Can't handle ReadableStream from fetch as attachment HOT 1
- Double quotes being removed from headers with single quotes, leading to rejections HOT 3
- npm attestation broken as of 6.9.11 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemailer.