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

Mailbox not found. #86

Open
sfarkas1988 opened this issue Jul 29, 2024 · 0 comments
Open

Mailbox not found. #86

sfarkas1988 opened this issue Jul 29, 2024 · 0 comments

Comments

@sfarkas1988
Copy link

Can I somehow pass a custom smtp server for an email address?

I suppose the 3rd parameter exchange should be changeable when running validate():

https://github.com/mfbx9da4/deep-email-validator/blob/8bbd9597a7ce435f0a77889a45daccdd5d7c3488/src/smtp/smtp.ts#L11C68-L11C76

In java, retrieving the SMTP Server works like this:

public boolean isMXRecordValid(String email) { String domain = email.substring(email.indexOf('@') + 1); try { this.records = new Lookup(domain, Type.MX).run(); return this.records != null && this.records.length > 0; } catch (Exception e) { return false; } }

So I suppose when I get Mailbox not found error, the wrong smtp Server is used to connect.

Thank you in advance

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

1 participant