Ciao a tutti, come posso verificare se un indirizzo email esiste senza inviargli una mail?
string[] host = (address.Split('@')); string hostname = host[1]; try { IPHostEntry IPhst = Dns.GetHostEntry(hostname); IPEndPoint endPt = new IPEndPoint(IPhst.AddressList[0], 25); Socket s = new Socket(endPt.AddressFamily, SocketType.Stream, ProtocolType.Tcp); s.Connect(endPt);
Ok, Grazie. Giusto per informare gli alti lettori. così è possibile verificare i dati del server SMTP:
Torna al forum | Feed RSS