asp.net - Is there a way to make sure the provided email is working? -



asp.net - Is there a way to make sure the provided email is working? -

i want send confirmation email when user register, first want create sure email real , working, there way check ? mean lets want registers email: blah@blah.com, on server side want send email address api or thing returns email working, i'll send confirmation one. possible ? thanks

this want: end-to-end email address verification applications

this tutorial consists of 3 parts:

1) validations code:

public static bool isemail(string inputemail) { inputemail = nulltostring(inputemail); string strregex = @"^([a-za-z0-9_\-\.]+)@((\[[0-9]{1,3}" + @"\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-za-z0-9\-]+\" + @".)+))([a-za-z]{2,4}|[0-9]{1,3})(\]?)$"; regex re = new regex(strregex); if (re.ismatch(inputemail)) homecoming (true); else homecoming (false); }

2) validating via smtp network connection

string[] host = (address.split('@')); string hostname = host[1]; iphostentry iphst = dns.resolve(hostname); ipendpoint endpt = new ipendpoint(iphst.addresslist[0], 25); socket s= new socket(endpt.addressfamily, sockettype.stream,protocoltype.tcp); s.connect(endpt);

3) validating via smtp handshakes

...more info here

asp.net email

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -