How verify email address

ahahto

Avatar: ahahto

2007-10-07 12:55

How I can do simply email address verify that it is typed correctly ? Is it possibly that customer should write email address twice and then it is checked ? I have lot of orders where email address is typed incorrectly.

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-10-08 17:26

ahahto - You can check that domain from this email exists and works but it is not best way. Another way is send verify link on client email to check order. Problem is that it will not give 100% guarantee that Your client will get email :/

ahahto

Avatar: ahahto

2007-10-08 19:59

But is it possible that customer should write email address twice and then QC check that both of them are writed same way ?

idaryl

Avatar: idaryl

2007-10-08 21:58

You may want to implement this into your checkform.js - Ideally the OpenSource guys really should implement a feature like this to make the form a little more robust (suggestion nly guys ;-)

http://javascript.internet.com/forms/check-email.html

idaryl

Avatar: idaryl

2007-10-08 22:00

oh and have it set to work using the onChange in the <input type="text" name="sSender" /> rather than on submit.......

idaryl

Avatar: idaryl

2007-10-11 03:35

get it to work?

ahahto

Avatar: ahahto

2007-10-16 19:50

This script will check that email format is correct, example user@domain.com. I need verification that customer was writed email address correctly. Example customer email address is name@hotmail.com, but they write name@otmail.com.

If customer should write it two times, then QC can check that both of them are writed same way. How I can do this ?

anjo

Avatar: anjo

2007-10-16 20:20

idaryl what i have done in my cart was to create another compulsory email field so that customer has to type email address twice.
Although QC does not check if both entries match, I still receive both email entries in orders reducing the risk of incorrect email address.

not perfect but suits me for now

ahahto

Avatar: ahahto

2007-10-16 20:42

Ok, where you add this check ?

Here is also checkmail function which check that domain exist:
function checkEmail( $sEmail ){

if (eregi( "^[a-z0-9_.-]+([_\\.-][a-z0-9]+)*@([a-z0-9_\.-]+([\.][a-z]{2,4}))+$", $sEmail )) {
list($userName, $mailDomain) = split("@", $sEmail);
if (checkdnsrr($mailDomain, "MX")) {
// this is a valid email domain.
return true;
}
else {
return false;
// this is not.
}
}
} // end function checkEmail

Back to top
about us | contact