Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
9
Answers
how to email verification in c#?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Mani Kandan
7y
234
1
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...
Post
Reset
Cancel
Answers (
9
)
Next Recommended Forum
Display product' Data on website .
Post all ListBox Item values View to Controller