Solved

Windows API for NNTP/SMTP/POP

Posted on 1998-07-16
5
525 Views
Last Modified: 2013-11-20
What options do I have for directly using NNTP/SMTP or POP protocols from a Visual C++, or Visual Basic app?

I want to be able to add news posting and email send-receive to an application.

What is the Windows API to these internet services?
0
Comment
Question by:scce
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:alamo
ID: 1319373
There's no specific API, the only way to access them is to use a control to open a tcp/ip socket to the server and then speak the appropriate protocol.

At the lowest level is direct socket programming, or the Winsock control, but you'd have to learn and implement each server's protocol. Much better would be to use one of the controls available that implement the protocols for you and so have a very high-level interface.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1319374
You need to do Windows Socket programming.

The following Web site provides Winsock Programming tutorial. There is an NNTP/SMTP/POP3 client example.
http://users.neca.com/vmis/wsock.htm

For SMTP and POP3, you can also use the following code directly.

http://www.codeguru.com/internet/smtp2.shtml
http://www.codeguru.com/internet/smtp.shtml

http://www.codeguru.com/internet/mailchecker.shtml
http://www.codeguru.com/internet/pop3_protocol_class_wrapper.shtml
0
 

Author Comment

by:scce
ID: 1319375
Excellent, thanks, chensu.  I had no idea that neca.com site was available.  What a brilliant resource.

Are you aware of any cheap or free high-level libraries that wrap Winsock?

Thanks again.
0
 
LVL 23

Expert Comment

by:chensu
ID: 1319376
0
 

Author Comment

by:scce
ID: 1319377
Thanks again!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now