You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I created a class to send emails, I instantiante this class when the application starts. My assumption is that the instance will keep the transport open but sometimes I get the error Cannot send message - smtp connection socket is already destroyed.
I'm using ElysiaJS, so I don't know if I'm doing it wrong. I'm using pooling config in Nodemailer.
I run this in my entry file
/**
* Connect to Mail
*/
initializeMail().catch((error) => {
console.error('Failed to connect to mail: ' + error.message);
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I created a class to send emails, I instantiante this class when the application starts. My assumption is that the instance will keep the transport open but sometimes I get the error Cannot send message - smtp connection socket is already destroyed.
I'm using ElysiaJS, so I don't know if I'm doing it wrong. I'm using pooling config in Nodemailer.
I run this in my entry file
My initialize code in a separate file:
The class below:
Beta Was this translation helpful? Give feedback.
All reactions