Re: socket - e-mailaddress validation

From: Date: Wed, 06 Feb 2002 10:21:48 +0000
Subject: Re: socket - e-mailaddress validation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-83693@lists.php.net to get a copy of this message
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. Also you can use a local SMTP server that supports the VRFY (verify) command to check if the address is accepted. Google for 'RFC SMTP' for more details on the SMTP protocol. bvr. On Wed, 6 Feb 2002 11:05:31 +0100, B. Verbeek wrote: >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 >(user@domain.com) 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 domain? > >Regards, >bart > > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#83693) next »