Problem in developing newsreader in vb.net

N

.net

Hello,

I am developing a Newsreader in vb.net and i am

getting a problem in posting article to newserver

for a particular set of newsgroups. i developin g

this newsreader using nntp commands.I need

vb.net code for posting a article . I getting a

problem in defining a article format.

Kindly , Send me code for posting article in vb.net

using nntp command "post".

with regards,
balu.
 
C

Cor Ligthert

I never did this however got it from Kadzu

http://www.indyproject.org/indy.html

Imports Indy.Sockets.IndyNNTP

Dim LHTTP as new HTTP
Dim LMsg as new Message

with LMsg
From.Address = "[email protected]"
Subject = "Hello"
Newsgroups.Add("microsoft.public.dotnet.languages.vb")
Body.Text = "This is my message"
end with

LHTTP.Host = "msnews.microsoft.com"
LHTTP.Connect
try
LHTTP.Post(Message)
catch
LHTTP.Disconnect
end try

I hope this helps a little bit?
 
Top