473,698 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email Verification

10 New Member
Can any one help me?
how to verify weather the Email actually exist or not?
Thanks in Advance.
Jan 18 '08 #1
4 2049
dlite922
1,584 Recognized Expert Top Contributor
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 Recognized Expert Expert
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(validateEmai l()){
echo "email is valid";
} else {
echo "Come again";
}
[/php]

:)
[/php]
Jan 18 '08 #3
nathj
938 Recognized Expert Contributor
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 = "Invali d Email - Please re-enter.";
} else {
return true;
}
}
if(validateEmai l()){
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 Recognized Expert Top Contributor
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
2598
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 www.fuelprotest.com?cvote.php?uid=000&crc=8289fde1298721ac397392909edf2 (example link - this one won't work) However some users had problems with the link working. The email was just plain text using mail(). I have now changed it to MIME 1.0 and text/html. Would you please try
4
3016
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 User1@here.whatever and User4@here.whatever but if "Loaded" is chosen it needs to email User2@here.whatever and User3@here.whatever, etc, etc... I'm aware that the only thing that really needs to change is the "Mail.AddAddress" line (at least...
1
1701
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 subscribe. They then are sent an email asking them to click a link to confirm. how can I prevent a spammer from simply looping through thousands of emails and populating my email list table with thousands of records and crashing the system?
2
5261
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 the process to validate an email address is done at 3 levels: 1. Verify that it is syntactically valid 2. Verify that the domain exists (SMTP verification) 3. Verify that the email address exists at that domain (MX verification) The first one I...
2
1644
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 people entering other peeps email address I will need some
0
1714
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. However, "Step 4" bothers me, and I wonder if others are as bothered as I am. /** * Validate submitted email
5
2060
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 restraint on this, so each email that goes out you have to confirm that Access is allowed to use Outlook. Is there anyway round this that anyone knows of, obviously I do not want to confirm 400 times (or more) that everthing is above board. Thanks...
4
1917
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 new user has been created. I set the profile.isverified to false. OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g:...
1
1288
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 code.. but its completely functioning ... but link available as demo is functioning good// check this link how its doing /... Plz help me... Thanks in advance...
4
1739
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 activated. This all works well. But i need to retrieve the whole session when user opens the site by clicking the email verification link. I can not use the cookieless mode of session, this is requirement , which in fact solves the problem. So i am...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7740
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.