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

Incorrect error detection in SMTP connection #56

Open
SpeckiJ opened this issue Jan 28, 2020 · 0 comments
Open

Incorrect error detection in SMTP connection #56

SpeckiJ opened this issue Jan 28, 2020 · 0 comments

Comments

@SpeckiJ
Copy link
Collaborator

SpeckiJ commented Jan 28, 2020

When sending an Email fails. e.g. due to issues with the credentials, a callback(err) is invoced instead of a correct callback(err, 500). Additionally it seems like err.message is not set by the transport library, instead an additional info object is provided.

This issue can happen because depending on the SMTP configuration, the verify function

trans.verify(function(error, success) {
might succeed even though sending emails will be rejected later on.

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

No branches or pull requests

1 participant