Skip to content

Mailbox not found. #86

@sfarkas1988

Description

@sfarkas1988

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions