Skip to content
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

Error when Sending Multiple Emails using Nodemailer #1696

Open
Suryamaheshd opened this issue Nov 19, 2024 · 2 comments
Open

Error when Sending Multiple Emails using Nodemailer #1696

Suryamaheshd opened this issue Nov 19, 2024 · 2 comments

Comments

@Suryamaheshd
Copy link

When I attempt to send multiple emails using Nodemailer, the first email sends successfully, but subsequent attempts result in the following error:
read ECONNRESET
write ECONNRESET

I am encountering this issue consistently when sending multiple emails in a batch. Could you please provide a solution or guidance on how to resolve this problem?

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@tdelrealb-dev
Copy link

This is most likely due to the overload of the SMTP server you are connecting to. It may be essential to use a delay between sends so you don't get a rejection from the server.

I myself developed a package that covers batch mailing, with delay and configurable size, in case you are interested.

Here is the link to npm:

🔗 https://www.npmjs.com/package/gridbox-mailer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants