mailpit icon indicating copy to clipboard operation
mailpit copied to clipboard

Nodemailer crashes when sending several emails at a time

Open erikmusd opened this issue 1 year ago • 1 comments

First of all, love the UI and utility of mailpit! I just started using it. Though eventually started having problems.

Not sure why, but whenever I use nodemailer to send several test emails at a time every 15 seconds it eventually stops working. The exact same setup works without problem on maildev https://github.com/maildev/maildev, the alternative. I like the mailpit UI much more, so would like to get it working if possible.

My app code:

const transporter = nodemailer.createTransport( {
      port : 1025,  
      pool : true,
    } );

I'm using mailpit on docker based on https://mailpit.axllent.org/docs/install/docker/?query=docker. I'm on Windows 10.

What could be possibly happening? Any help would be greatly appreciated!

erikmusd avatar Apr 03 '24 23:04 erikmusd

@erikmusd Thank you, very glad to hear you love Mailpit!

I do not know why this would be either, but I suspect it's a bug in nodemailer (eg: a memory leak or something). The strange thing is you do not have the same issue using maildev. When you say "eventually", is that after 2 minutes, 2 hours, 2 days etc?

Are you able to write a simple node application (and paste it here) which replicates your issue so I can test myself?

Edit: when it crashes, is there any debug output displayed by node?

axllent avatar Apr 04 '24 02:04 axllent

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Apr 19 '24 01:04 github-actions[bot]

This issue was closed because there has been no activity since being marked as stale.

github-actions[bot] avatar Apr 22 '24 01:04 github-actions[bot]