473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Email Verification

Can any one help me?
how to verify weather the Email actually exist or not?
Thanks in Advance.
Jan 18 '08 #1
4 2037
dlite922
1,584 Expert 1GB
Can any one help me?
how to verify weather the Email actually exist or not?
Thanks in Advance.
there's no code that allows you to do this, otherwise spammers would have a field day.

did you google this question? no?


http://www.dailysofts.com/program/92..._Software.html

cuz i found that, along with 20 questions posted.


[PHP]
function google($yourQ)
{
if ($yourAnswer == NULL)
{
echo "Help! no answer on google";
}
else
{
$you = $bangHeader->Table * 100;
return $you;
}

}
[/PHP]
google("Email Verification Exists");
Jan 18 '08 #2
Markus
6,050 Expert 4TB
there's no code that allows you to do this, otherwise spammers would have a field day.

did you google this question? no?


http://www.dailysofts.com/program/92..._Software.html

cuz i found that, along with 20 questions posted.


[PHP]
function google($yourQ)
{
if ($yourAnswer == NULL)
{
echo "Help! no answer on google";
}
else
{
$you = $bangHeader->Table * 100;
return $you;
}

}
[/PHP]
google("Email Verification Exists");
HAHA!

I'm so saving that; use it on a newbie caught in the headlights :D

To the OP:

The best way to validate an email is using a regex (regular expression)

There are soooo many tutorials on the world wide internets, so a simple google search (no headbanging required) will suffice!

Here's a validation i use:
[php]
function validateEmail(){
global $__errorEmail;
$email = $_POST['email'];
$__emailExp = '/^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$/';

if(!preg_match($__emailExp, $email)){
$__errorEmail = "Invalid Email - Please re-enter.";
} else {
return true;
}
}
if(validateEmail()){
echo "email is valid";
} else {
echo "Come again";
}
[/php]

:)
[/php]
Jan 18 '08 #3
nathj
938 Expert 512MB
HAHA!

I'm so saving that; use it on a newbie caught in the headlights :D

To the OP:

The best way to validate an email is using a regex (regular expression)

There are soooo many tutorials on the world wide internets, so a simple google search (no headbanging required) will suffice!

Here's a validation i use:
[php]
function validateEmail(){
global $__errorEmail;
$email = $_POST['email'];
$__emailExp = '/^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$/';

if(!preg_match($__emailExp, $email)){
$__errorEmail = "Invalid Email - Please re-enter.";
} else {
return true;
}
}
if(validateEmail()){
echo "email is valid";
} else {
echo "Come again";
}
[/php]

:)
[/php]
Hi,

Tthis is pretty much what I do for email verification. the draw back with this is that is simply checks that the user entered value s in the correct format to be an email address.

If you then send an email to that address using PHP you can checkt the return of mail() and if this is true it was able to send themail so you can call it good. If it is false then the chances are the email is bad and so you can take steps to remove it from the list.

I admit thisis not foolproof but it does give you a further option for attempting keep your email list clean. You can of course allow for tolerance to say if the email fails 5 times then remove it. This is a bitmore advaced and you'd need to check the database for each email address as you send the email out.

I hope this makes sense and I wish you luck with the project.

Cheers
nathj
Jan 18 '08 #4
ak1dnar
1,584 Expert 1GB
Guys, try this one too.
http://www.php.net/checkdnsrr
Jan 19 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Nel | last post by:
I have recently updated an on-line petition at www.fuelprotest.com The confirmation email contained a verification link like...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
1
by: frekster | last post by:
Hi. Looking for some feedback on how to prevent a specific spam attack. I have a form for a person to subscribe to a mailing list and they can type in their email and click submit to...
2
by: Wayne Wengert | last post by:
I want to write a Windows application to go through all the email addresses in an SQL Server table and to report which ones are invalid. From Googling and perusing NGs it is my understanding that...
2
by: toedipper | last post by:
Hello, php and mysql I am looking to start a newsletter on my site. I imagine I will have a text box that users enter their email address into and a button that says 'subscribe' To stop...
0
by: comp.lang.php | last post by:
I wrote a method that should check if an email address is valid. In another method I've already checked to see if $_POST exists and is well-formed, so those checks are not necessary in this scope....
5
by: Nick 'The Database Guy' | last post by:
It used to be possible to send email (with the DoCmd.SendObject acSendNoObject, , , "nickmcm@btinternet.com", , , "Email", "Enquiry", False command), however since 2000, Microsoft has put a...
4
by: Mike | last post by:
Hi all, In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation: - In my <profilearea, I created <isVerifiedproperty. - Suppose a...
1
by: Jagadesh | last post by:
Hello for all, how to create an email verification... Not an syntax verification,. whether the email id is availble for the domain or not.. I will gave some link.. check that ...there's an...
4
by: sangam56 | last post by:
I have used cookieless mode of ASPState sql server session mode. I have used the CreateUserWizard to register user in the web site. And users must click the email verification link before being...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.