guileen / node-sendmail

send mail without setting up a SMTP server
http://guileen.github.com/node-sendmail
MIT License
559 stars 110 forks source link

Prevent multiple calls to callback #77

Open SergeS opened 4 years ago

SergeS commented 4 years ago

Description

Ensure that callback is called only once at the end

Motivation and Context

When emails are from different domains, ensure that callback is called after all of the emails are sent

How Has This Been Tested?

Just try send email to two different domains (Expected - callback is called when all emails are sent)

Types of changes

Bug fix (Do not return response from sending - is it really necessary ?)

Checklist: