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

Connection error while verifying mail adress #59

Open
manuellagrand opened this issue Jul 13, 2020 · 1 comment
Open

Connection error while verifying mail adress #59

manuellagrand opened this issue Jul 13, 2020 · 1 comment

Comments

@manuellagrand
Copy link

manuellagrand commented Jul 13, 2020

Hi, thanks for the package. I have an issue when I want to check an email adress with the package. I use the stand alone email-verify [email protected] version and the followng sample code:

const verifier = require('email-verify');

const infoCodes = verifier.infoCodes;

verifier.verify("[email protected]", (err, info) => {
    if(err) {
      console.log(err);
    }
    else{
      console.log( "Success (T/F): " + info.success);
      console.log( "Info: " + info.info );
  
      //Info object returns a code which representing a state of validation:
  
      //Connected to SMTP server and finished email verification
      console.log(info.code === infoCodes.finishedVerification);
  
      //Domain not found
      console.log(info.code === infoCodes.domainNotFound);
  
      //Email is not valid
      console.log(info.code === infoCodes.invalidEmailStructure);
  
      //No MX record in domain name
      console.log(info.code === infoCodes.noMxRecords);
  
      //SMTP connection timeout
      console.log(info.code === infoCodes.SMTPConnectionTimeout);
  
      //SMTP connection error
      console.log(info.code === infoCodes.SMTPConnectionError)
    }
  })

I tested this sample code on my laptop and the website repI.it (https://repl.it/languages/nodejs) but I always have this error:

OperationalError: connect ETIMEDOUT 104.47.1.36:25 error at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) { errno: 'ETIMEDOUT', code: 'ETIMEDOUT', syscall: 'connect', address: '104.47.2.36', port: 25 }

why I keep getting this error and there is a way to resolve it?

I use nodeJS 12.18.2 and email-verify 0.2.1 on Ubuntu 18.04 and my network connection is Fiber To The Last Amplifier.

@duke7able
Copy link

having the same issue

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

2 participants