473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Check PoP3 & SMTP Servers are up

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
Jan 4 '06 #1
2 1730
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
"Ben" <Be*@Newsgroups.microsoft.com> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
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

Jan 4 '06 #2
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/u....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/project...b/download.qpx

It is what the Google Mail Checker uses

I hope this helps,

Crouchie1998
BA (HONS) MCP MCSE
Jan 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alexander Schumann | last post by:
Hello everyone, We are building a new web based e-mail client "Fiezel" that will support IMAP, POP3 and SMTP protocols. Will be written in php4. I am trying to collect all the infomation on SNMP...
3
by: Jay | last post by:
I'm not asking for any code (although it would be nice if someone got a sample). But how would i design a web based POP3 client? I want the users to be able to access the emails from Outlook,...
5
by: Ken Nistler | last post by:
Hello, I was wondering if anyone can help me out. I am trying to send mail from a c# app thru my ISP pop3 mail server. I figured it would be similar to using SMTP, but use my username and...
2
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers...
3
by: PhatCat | last post by:
Hi. I need to create an application (service) that will be active in the background all the time and receive mail. I can't use Microsoft Exchange Server, I have to make my own. Only problem is...
2
by: Thief_ | last post by:
I need to monitor POP3 & IMAP servers for new emails. Ideally my app needs to sit in the system tray. Has anyone done this before? -- | +-- Thief_ | VB.NET 2003
3
by: Thom Little | last post by:
I want to check if a remote server is healthy. For FTP and HTTP ports I use ... public static string Connect( string hoist, int port ) { try { IPAddress ipa = Dns.GetHostAddresses( host );...
5
by: Chris Gage | last post by:
I'm a longtime *nix guy and am fairly comfortable "over there" although I am a developer and not a sysadmin, mostly J2EE stuff. I recently got the Microsoft "Action Pack" as a partner. It has...
11
by: mp- | last post by:
I want to be able to allow people to check their email from my PHP online application. Given only the users 1) email address, 2) username (if applicable) and 3) password - how can I auto detect...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.