PHP Email

Everything that doesn't belong to any other forum but this one. If it doesn't belong here then it ... well, it just doesn't.

Moderator: mkoch227

Post Reply
Vidya

PHP Email

Post by Vidya »

Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

I need PHP Email Verification code. If anybody have it, can u share with me?
Thanks
Vidya.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I use this code:

Code: Select all

if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email))
{
// email is NOT valid, do whatever you want here
}
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Guest

Post by Guest »

if(!ereg("^[_A-Z_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $Email)) {
echo "Please enter a valid Email !"; }
else { echo "$Email"; }
Post Reply