Article View: borland.public.cppbuilder.internet.socket
Article #1219Indys NNTP Posting problem
From: MwnN
Date: Mon, 05 Mar 2007 12:53
Date: Mon, 05 Mar 2007 12:53
37 lines
2300 bytes
2300 bytes
Hi,
I was wondering what might be wrong with the below code, it runs fine but
there's no message being posted onto the server, plus, is there a was I can
get information back from the Post() method to inform me if it was
successful or failed? as the OnStatus even tells me "Encoding Text" and then
that's it, my thread exits. IdNNTP1WorkEnd() ends with 'wmWrite'
Thanks,
MwnN
IdNNTP2->Username = "********";
IdNNTP2->Password = "********";
IdNNTP2->Host = "my-news-server.com";
IdNNTP2->Port = 119;
IdNNTP2->Connect();
TIdMessage* msg = new TIdMessage(NULL);
TIdEMailAddressList* el = new TIdEMailAddressList(NULL);
TIdEMailAddressItem* ei = new TIdEMailAddressItem(NULL);
ei->Address = "Test@test.co.uk";
el->EMailAddresses = "Test@test.co.uk";
msg->ReplyTo = el;
msg->Sender = ei;
msg->From = ei;
msg->Body->Text = "Testing Text Post";
msg->Subject = "Testing Text Post";
IdNNTP2->SelectGroup("0.test");
IdNNTP2->Post(msg);
delete msg;
delete el;
delete ei;
IdNNTP2->Disconnect();
Technical Details
Message-ID:
<1NOdncmTj_xWj3HYRVnygAA@giganews.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8d4a352b876ea3ce,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 05 Mar 2007 06:53:31 -0600 From: "MwnN" <MwnN@localhost.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Indys NNTP Posting problem Date: Mon, 5 Mar 2007 12:53:29 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-ID: <1NOdncmTj_xWj3HYRVnygAA@giganews.com> Lines: 39 X-Trace: sv3-HzfvKH+Mf1MLgLo4hbnVpvMpcH+R+GHAyYkHeT8NYUxXVC+EqPQ+WUCbSxbtNbeZJJtlpCov+3DxCLm!XpI3AxagRlbXvtVZTqSWaE52/cotWB7Ue/MgiV13ECR6NLSsByzshK695n+5dP6z X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34