Re: Re: Richard Lynch's Email Address ...

From: Date: Thu, 03 Nov 2005 14:16:23 +0000
Subject: Re: Re: Richard Lynch's Email Address ...
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-225040@lists.php.net to get a copy of this message
Marcus Bointon wrote:
The PEAR rfc822 class is pretty good, but it should be noted it's designed for parsing entire to, cc, bcc fields which may contain multiple addresses, and it's not quite as simple as asking it 'is this address ok'.
News to me... if (!PEAR::isError(Mail_RFC822::parseAddressList('joe@example.com'))) {
    // Valid...
} It even has a method specifically for "normal" email addresses of the form user@domain.com... if (Mail_RFC822::isValidInetAddress('joe@example.com')) {
    // Valid...
} -- Richard Heyes http://www.phpguru.org

« previous php.general (#225040) next »