Solved

Windows API for NNTP/SMTP/POP

Posted on 1998-07-16
5
545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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