Sending EMAIL w/o USER INTERACTION

How to email validation regex in C# and javascript?