Hi,
Here is the code (by Randy Charles Morin) (C#) for posting to newsgroup:
public void Post(string newsgroup, string subject, string from, string
content)
{
string message;
string response;
message = "POST " + newsgroup + "\r\n";
Write(message);
response = Response();
if (response.Substring( 0, 3) != "340")
throw new NntpException(response);
message = "From: " + from + "\r\n"
+ "Newsgroups: " + newsgroup + "\r\n"
+ "Subject: " + subject + "\r\n\r\n"
+ content + "\r\n.\r\n";
Write(message);
response = Response();
if (response.Substring( 0, 3) != "240")
throw new NntpException(response);
}
Regards,
Peter Jausovec
(
http://blog.jausovec.net)
".net" <ba****************@yahoo.com> wrote in message
news:u4**************@TK2MSFTNGP10.phx.gbl...
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.