MailAddressValidator.Validate() fails with ServerConnectionError

Hi, I am attempting to validate an email address using your sample code. The call to MailAddressValidator.Validate() consistently fails after about 2 minutes with result.Status == ServerConnectionError. My code is:

  ComponentInfo.SetLicense("FREE-LIMITED-KEY");
  string email = "this-does-not-exist@nextwavesoftware.com";
  MailAddressValidationResult result = MailAddressValidator.Validate(email);

Thank you for your help!

Hi Mike,

I’m afraid I was unable to reproduce your issue.
I get MailAddressValidationStatus.InvalidAddress as a result.

Can you please try again using a different machine and/or a different internet connection? The issue could be related to your local settings (like with your firewall or an ISP provider).

Also, can you create a small Visual Studio project that reproduces your issue and send it to us? We’ll try running it on our end.

Regards,
Mario

Thank you for your reply, Mario. Q: Do I need to have port 25 open on the machine that’s running my app?

Yes.

The DNS client gets MX records that contain mail server addresses, and the mail address validation will connect to those addresses by always using the same port 25 (TCP).