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

Issue: SMTP Ports Other Than 25 Not Working #5

Open
Mayank-Grorapid opened this issue Oct 28, 2024 · 0 comments
Open

Issue: SMTP Ports Other Than 25 Not Working #5

Mayank-Grorapid opened this issue Oct 28, 2024 · 0 comments

Comments

@Mayank-Grorapid
Copy link

I am experiencing issues when trying to use SMTP ports other than port 25. I have tested both port 587 and port 465, but neither seems to work for email verification. The only port that functions correctly is port 25, which is typically blocked by many cloud service providers.

Since port 25 is not a viable option for email verification in most cloud environments, this limitation significantly impacts the usability of the library.

Steps to Reproduce:

  1. Set up ping-email with the following configuration:

    import { PingEmail } from "ping-email";
    
    const pingEmail = new PingEmail({
        port: 587, // or 465
        fqdn: "smtp.example.org",
        sender: "verify@example.org",
        timeout: 15000,
        attempts: 5,
        debug: true
    });
  2. Call the ping method with a valid email address:

    const result = await pingEmail.ping("test@example.com");
    console.log(result);
  3. Output:

    [ping-email - INFO]:  Pinging email: test@example.com
    [ping-email - INFO]:  Verifying syntax of email: test@example.com
    [ping-email - INFO]:  Verifying disposable domain of email: test@example.com
    [ping-email - INFO]:  Verifying domain of email: test@example.com
    [ping-email - INFO]:  Verifying SMTP of email: test@example.com
    [ping-email - INFO]:  Attempt 1 of 5
    {
      email: 'test@example.com',
      valid: false,
      success: false,
      message: 'Connection timeout'
    }
  • Any guidance on alternative configurations would be appreciated.
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