Hi
I need to create an email validator
me thinks I will use Winsock?
Any ideas, tips, sourcecode appreciated.
thx
Printable View
Hi
I need to create an email validator
me thinks I will use Winsock?
Any ideas, tips, sourcecode appreciated.
thx
Check if there's a '@' and a '.' in order in the string. What exactly are you trying to do - It would be extremely difficult to determine if an address is a real, working address without emailing them a message asking them to reply and seeing what you get back.
you said ------ :
It would be extremely difficult to determine if an address is a real, working address without emailing them a message asking them to reply and seeing what you get back.
This is exactly what I want to do - there are commercial apps out there but I need this functionality in my VB6 app.
There is an SMTP command (I think VRFY?) that allows you to check if an email address exists. You will have to look at the email address's domain, look up the mail server for that domain, and then connect to the mail server, issue the HELO command, then then command to verify the user name / email account. The problem is not all mail servers will support or correctly answer the command - they'll always verify any address.