is there a simple way to look up if a domain has a MX record or not using Delphi? I have a list of emails that I wish to verify work, I want to check each of the domains and see if a MX server even exists.
Thanks.
Edit: The email addresses I have are all from bounced email messages of error code: 5.4.0. But too many servers don’t follow any standards and 5.4.0 error code itself can mean too much. I don’t want to just remove all the email addresses found with that error code erroraneously, so I figure a better way is to first check if the domain or mx record don’t exist and remove those for sure.
It is actually good to have an e-mail checker. If nothing else you can clean you e-mail base and avoid sending over and over to non existing mails. Or you can use it as means of verifying user mails when they sign on to your application.
Here is a part of the code in my mail checking class.
Basically you do it in three steps: