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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx'))) {
    // Valid...
}

It even has a method specifically for "normal" email addresses of the form user@xxxxxxxxxxxxx

if (Mail_RFC822::isValidInetAddress('joe@xxxxxxxxxxx')) {
    // Valid...
}

--
Richard Heyes
http://www.phpguru.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux