Fw: [PHP-WIN] Check mail format
| From: | Luis Moreira | Date: | Fri, 17 Oct 2003 13:39:47 +0000 |
| Subject: | Fw: [PHP-WIN] Check mail format | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21807@lists.php.net to get a copy of this message | ||
As far as I know, there is no direct way.
You have to parse the address, looking for the "@" character, at least.
Then check for the presence of characters before and after the "@", and at
least a dot "." on the right side (after "@").
Luis
----- Original Message -----
From: "MeAndI" <sebabert@libero.it>
To: <php-windows@lists.php.net>
Sent: Friday, October 17, 2003 1:51 PM
Subject: [PHP-WIN] Check mail format
> Hi,
>
> I just want to know how I can recognize that the e-mail address inserted
by
> the user is correct or not.
>
> E.g.
> user@server.com -> correct e-mail address
> user@server or user-server.com -> incorrect email addresses
>
> please help
> Thanks
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>