Anyone have any Visual Basic 6 code that can be compiled into a COM object so I can validate an SMTP email address. I want to validate the DNS and the username portion of the address.
What API's should I be looking at?
Printable View
Anyone have any Visual Basic 6 code that can be compiled into a COM object so I can validate an SMTP email address. I want to validate the DNS and the username portion of the address.
What API's should I be looking at?
There are none. Unless you are sending mail on an intranet.
For general SMTP stuff you have to hope that the server supports the finger protocol.
What are you trying to do? Validating usernames and domains for email outside of your business is unusual.
Send a message to the address. If you get back a non-delivery message, then it was an invalid address.