Bug #16655 Updated: Function for checking if email-adress is valid
| From: | mfischer@php.net | Date: | Wed, 17 Apr 2002 20:19:24 +0000 |
| Subject: | Bug #16655 Updated: Function for checking if email-adress is valid | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5628@lists.php.net to get a copy of this message | ||
ID: 16655
Updated by: mfischer@php.net
Reported By: metz@speedpartner.de
Status: Open
-Bug Type: Feature/Change Request
+Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
This belongs into PEAR (if at all).
Previous Comments:
------------------------------------------------------------------------
[2002-04-17 12:36:23] metz@speedpartner.de
you don't know how happy I am ;))
------------------------------------------------------------------------
[2002-04-17 10:23:16] cynic@php.net
everything's possible, but PEAR is part of the "standard repertoire",
so you should be happy. :)
------------------------------------------------------------------------
[2002-04-17 10:13:21] metz@speedpartner.de
but isn't it possible to add this function to the "standard repertoir"
of php?
I think many people will use it and at the moment everyone writes his
own "version" of this function.
------------------------------------------------------------------------
[2002-04-17 10:11:00] jtate@php.net
Probably belongs in PEAR not PHP, along with the URL-ize function
mentioned in a bug report yesterday (#16642). Now... Which module does
it belong in?
------------------------------------------------------------------------
[2002-04-17 07:19:12] bate@php.net
function validEmail($email_adresse) {
if
(eregi('^[-!#$%&\'*+\\./0-9=?A-Z^_
a-z{|}~]+'.'@('.'([-!#$%&\'*+\\/0-9=?A-Z^_a-z{|}~]+\.)'.'([-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$))',
$email_adresse, $found)) {
if (getmxrr($found[1], $mx_records)) {
return $mx_records;
}
}
return false;
}
this is php function to check an email about validity and existing mx
records. :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16655
--
Edit this bug report at http://bugs.php.net/?id=16655&edit=1