Solved

Windows API for NNTP/SMTP/POP

Posted on 1998-07-16
5
535 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is it possible to combine several text files into one big one? (redhat v5 enterprise) 4 92
string initialization in java 11 113
tripleUp challenge 7 79
wordcount challenge 11 121
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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