[PHP] socket - e-mailaddress validation

2002-02-06 Thread B. Verbeek
Question: Is it possible to validate an e-mailaddress by opening a socket-connection to the specified domein (@domain.com) and then search for username ([EMAIL PROTECTED]) to validate an e-mailaddress? I know how to set up a socket-connection, but how do I search for the user in the given

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread bvr
Yes, this is possible. However you would need to connect to the users mailserver instead of just the domain. Use getmxrr() to retrieve the mail exchanger associated with the domain. To check if the user is accepted on that server you can issue a RCPT TO: command on it and see what happens.

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread Mike Frazer
If the remote system has the finger service activated, that would work. However, most servers have stopped running this and also the user generally has a say in whether they want to be listed. Out of curiosity, why do you want to do this? Mike Frazer Bvr [EMAIL PROTECTED] wrote in message