Comments (7)
Should be fixed with 1034ae8 - if the server supported only HELO but not EHLO then all commands were sent twice.
from nodemailer.
You are the fastest bug-fixer ever :)
from nodemailer.
Thanks :)
from nodemailer.
Would this also have caused the callback to return twice, i.e. is the callback only supposed to return once?
from nodemailer.
If the response for an EHLO command was erroneos (server didn't support it) then an additional HELO request was made. As there was a bug then the original "thread" (the EHLO one) didn't stop there and tried to continue anyway regardless of the error. Meanwhile HELO ended with success and started it's own separate command "thread" (actually it's not a thread but a callback chain or smth.), so as a consequence a set of two "threads" were sending matching commands to the same connection and thus fireing the callback function also not once but twice (one from the EHLO and one from the HELO thread).
In short - welcome to the wonderful world of callbacks and events :)
from nodemailer.
I've been in this world for a while.
from nodemailer.
I'm encountering this issue. While trying to debug it I noticed that this merge seems to have removed the fix:
andris9@76ec625
from nodemailer.
Related Issues (20)
- 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
- Showing Error instead of Log -- >> [Nest] 11912 - 21/03/2024, 12:06:03 pm ERROR [MailerService] Transporter is ready HOT 3
- MIME: GeoJSON mapping HOT 2
- Unhandled error crashes the process within transport.verify() HOT 2
- StreamTransport issues new lines as CRLF despite setting "unix" newline HOT 4
- Core dump on OpenBSD after 7.5 upgrade HOT 1
- Missing credentials for "PLAIN" HOT 4
- I having trouble with import nodemailer from 'nodemailer' HOT 2
- s
- Nodemailer - Cannot send message - smtp connection socket is already destroyed. HOT 1
- Emails sent with iCloud email in the 'from' field not reaching the inbox HOT 1
- Hostname/IP does not match certificate's altnames but certification is correct.
- connect ETIMEDOUT ERROR
- Not Sending Email (Error: Missing credentials for "PLAIN")
- What would be the recipe to encrypt the email with sender's certificate HOT 2
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.