Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

C# Program to Validate Email Address

C# Program to Validate Email Address

This is a simple C# .NET Program to validate email address. The ValildateEmail() function checks for a valid email and returns true if the email address is a valid email otherwise it returns false if the email address is not proper syntax. The code is well commented and should explain what is happening .

The Phoenix Project
Transform your IT and business with The Phoenix Project – the gripping story that redefines how we think about DevOps and innovation!
View on Amazon

This code uses regular expressions to validate the structure of the email address and checks for the presence of “@” and “.” characters. Additionally, it has a separate function ContainsIllegalCharacters to check for the presence of any illegal characters in the email address.

About The Author

M. Saqib

Saqib is Master-level Senior Software Engineer with over 14 years of experience in designing and developing large-scale software and web applications. He has more than eight years experience of leading software development teams. Saqib provides consultancy to develop software systems and web services for Fortune 500 companies. He has hands-on experience in C/C++ Java, JavaScript, PHP and .NET Technologies. Saqib owns and write contents on mycplus.com since 2004.