fastify-nodemailer icon indicating copy to clipboard operation
fastify-nodemailer copied to clipboard

Fix plugin exit when transport is SMTP

Open pawelangelow opened this issue 3 years ago • 1 comments

Problem: The plugin does not exit correctly when the transport is SMTP.

Why: Triggering the fastify.nodemailer.close(done) is expected to start disposing of resources procedure. However the mailer implementation proxies the execution to the underlying SMTP transport. In order to exit properly (after the plugin successfully closed), the callback has to be called on the plugin event close.

pawelangelow avatar May 13 '21 08:05 pawelangelow

Thank you, I've also opened an issue #107 but probably @lependu is not maintaining this anymore. Using this package should be avoided.

giovanni-bertoncelli avatar Nov 15 '23 15:11 giovanni-bertoncelli