modification. However, e-mail address user@xxx,com 111cn.net is still able to pass the verification, after careful examination is found to be because there is no pair. Escape caused. So make a slight change to it:
The code is as follows
Eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]{2,4}$)
Although it's easier to check the user name, it seems to work better now.
Example 1
The code is as foll
The verification of email address validity is a common problem! The general check method is to perform a simple format check on the email address string, such as whether it contains valid characters such. This method can only ensure that the address looks valid in the format, and cannot guarantee that the address can b
The verification of Email address validity is a common problem! The general check method is to perform a simple format check on the Email address string, such as whether it contains valid characters such. This method can only ensure that the address looks valid in the format, and cannot guarantee that the address can b
A small function used to check whether the email address is a valid email address.
/*
// Function name: CheckEmailAddr ($ C_mailaddr)
// Usage: determines whether the email address is a valid email address.
// Parameter: $ C_ma
JS Check password verification function and check email address codeCheck that passwords are the samefunction Issamepwd (OBJPWD1, OBJPWD2, msg){PWD1 = Objpwd1.value;PWD2 = Objpwd2.value;if (pwd1!= pwd2){if (null = MSG){Alert ("Password is not the same!") ");}Else{Alert (msg);}Objpwd2.value = "";Objpwd2.focus ();return false;}Else{return true;}}
if (Eregi (^[_.0-9a-z-]+@) ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) {
echo "Your e-mail through preliminary check";
}
?>
In this sentence, the first is to apply a eregi function, this function is very good understanding. Find a book and give you an explanation:
Syntax: int ereg (string pattern, string string, array [regs]);
return value: Integer/array
This function resolves string strings using pattern rul
if (eregi ("^[_.0-9a-z-]+@") ([0-9a-z][0-9a-z-]+.) +[a-z]$ ", $email)) { echo" your e-mail through preliminary check "; } ?> In this sentence, the first is to apply a eregi function, this function is also good to understand. Find a book, and I'll give you an explanation.: Syntax: int ereg (string pattern, string string, array [regs]); return value: Integer/array This function is P Attern the rule to pa
more reasonable because it verifies the suffix name. although there are more than four top-level domain names, you only need to modify them a little. However, the email address user @ xxx and com 111cn.net can still pass verification. after careful check, it is found that the. is not escaped. Then, make a slight modification to it:
The code is as follows:Eregi ("^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) +
Copy codeThe Code is as follows:/// /// Check whether the entered email address strEmail is valid. If it is invalid, true is returned./// Public bool CheckEmail (string strEmail){Int I, j;String strTmp, strResult;String strWords = "abcdefghijklmnopqrstuvwxyz _-. 0123456789"; // define valid character rangesBool blResult = false;StrTmp = strEmail. Trim ();// Check
verification, such as user @ 126 and com. After checking, it is found that it only verifies the user name, so I found a tutorial on the Internet. The example is as follows:
The Code is as follows:Eregi ('^ [_ a-z0-9-] + (. [_ a-z0-9-] +) * @ [a-z0-9-] + (. [a-z0-9-] +) * $ ', $ email)
After checking, it is found that the email address user @ 126 is still verified by com. An example is found:
The Code is a
Check SMTP server availability for ORA-29278 or ORA-29279 errors using utl_smtp to send email. (Document ID 604763.1)
Go to the bottom
Modification time:Type:Problem
Rating this document
Send a link to this document via email
Open a document in a new window
If you are a white-collar engineer, often sitting in the office and sending and receiving emails every day, you can use the Linux operating system in the company, so you have installed the mail system in the Linux operating system, but do you know the installation is successful? In Linux, how does one check whether the email system is successfully installed? This article explains in detail,
1)
This is a code that conforms fully to RFC2822 and RFC2821. Check only individual email addresses.
function Check_email_address ($email) {
We check that there ' s one @ symbol, and that's the lengths are right
if (!ereg ("[^@]{1,64}@[^@]{1,255}", $email)) {
Lt ;? Phpif (eregi (^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] + .) + [a-z] $, $ email) {echo your e-mail through a preliminary check ;}? Gt; nbsp; in this sentence, an eregi function is applied, which is easy to understand. If you want to find a book, you can give an explanation: nbsp; syntax: inte
If (eregi ("^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] $", $ ema
? Phpif (eregi (^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] + .) + [a-z] $, $ email) {echo your e-mail through a preliminary check ;}? In this sentence, an eregi function is first applied, which is quite understandable. If you look for a book, you can explain the syntax: intereg (stringpattern, st
If (eregi ("^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] $", $ email
This article mainly introduces PHP + Ajax to check whether an instance exists during user name or email registration. it is a very common and important function. it is often used in forum registration or member registration, if you need it, you can refer to PHP + Ajax to check whether a user name or email already exist
This article mainly introduces PHP + Ajax to check whether an instance exists during user name or email registration. it is a very common and important function. it is often used in forum registration or member registration, if you need it, you can refer to PHP + Ajax to check whether a user name or email already exist
How can I use php to check whether the email has been read?
When you send an email, you may want to know whether the email has been read by the recipient. The following code can meet this requirement. For more information, see
The Code is as follows:
Error_reporting (0 );
Header ("Content-Type: image/jpeg ");
// Get
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.