Check PoP3 & SMTP Servers are up

B

Ben

Hi

We have an application that during a process we need to check that a remote
POP3 Server and SMTP Server are accessable.

Ideally we just want to open a connection and close it immediately.

Is this possible without a third party tool?

Any advice is much appreciated.

Thanks
B
 
S

Simon Verona

For both you should be able to create a socket connection on the relevant
port sending a "HELLO" message and see if you get a reply... Any reply
should indicate that the pop3 or smtp server is alive.

Regards
Simon
 
C

Crouchie1998

I agree. Just create a socket & connect it to that address with the given
port (25 for example).

This search will help you for code:

http://www.gotdotnet.com/community/usersamples/Default.aspx?query=pop3&Sites=(www.GotDotNet.com)

If you are looking for an SSL class then there is a free C# library
available with examples in C# & VB.NET:

http://www.mentalis.org/php/dm/dm.qpx?28

If the above link don't work then download it from the following page:

http://www.mentalis.org/soft/projects/seclib/download.qpx

It is what the Google Mail Checker uses

I hope this helps,

Crouchie1998
BA (HONS) MCP MCSE
 

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


Top