-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this._socket.removeListener is not a function #20571
Comments
I get the same error in Node.js as well, cc @dehrhard
Maybe a bug in nodemailer? |
Hmm why do you think it's a bug in nodemailer? Isn't |
|
Oh, the reproduction code does not pass the connection option correctly, the error is gone with this change: const connection = {
from: "test@test.com",
host: "host.host.com",
port: 587,
auth: {
user: "123",
pass: "456",
},
};
const smtpClient = createTransport({
- connection,
+ ...connection,
secure: true,
}); |
Hey, I can confirm this works now. I knew it was something stupid 😄 Thanks, and again. Great work. |
This has come up with
npm:nodemailer
. See this comment #18303 (comment)The text was updated successfully, but these errors were encountered: