No such host is known

G

Guoqi Zheng

This is an email application. I need to connect to the pop server user
specify. However, when they input an invalide host name, they will get an
error message saying that No such host is known.

How can I validate the host and give them an predefined error message to
correct it?

--
Kind regards

Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
 
H

Hermit Dave

handle the exception thrown when the user enters a wrong host name

try
{
// your code
}
catch(Exception ex)
{
// whatever way you wish to handle the error
}

--

Regards,

Hermit Dave (D'way)
http://hdave.blogspot.com

(I hear what you're saying.. but lets try it my way first)
 
B

bruce barker

you can do a dns lookup. this will not validate the port, login, and
password though.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Staff online

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top