Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
9
Reply
how to email verification in c#?
Mani Kandan
Feb 28 2017 4:17 AM
215
Reply
Hello everyone,
I am working on MVC 5, I want to verify Email ID.
1) I am now validating email addres using jquery.
function
isEmail(email) {
var
regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
return
regex.test(email);
}
2) And checking the email id is existing or not inside database.
[HttpPost]
public
bool
UserEmailIDExist(
string
emailid)
{
if
(IsValidEmail(emailid) ==
true
)
{
PartnerBIL partnerBIL =
new
PartnerBIL();
return
partnerBIL.SearchCompanyname(emailid);
}
else
{
return
true
;
}
}
public
bool
IsValidEmail(
string
email)
{
/*Here, Which code I use for validate email id?*/
}
Also I want to verify the email id is valid online, how can I do that?
Please help me...
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
Display product' Data on website .
Post all ListBox Item values View to Controller