Problems posting articles using the NNTP component in D3 Pro
Hi!
I have a few problems posting articles to my local news server. The
program doesn't post anything & crashes right after this :
with NNTP do begin
Connect('10.0.0.1','119');
DocInput.Headers.Clear;
DocInput.Headers.Add('From', '...@dassic.com');
DocInput.Headers.Add('Newsgroups', 'dk.test');
DocInput.Headers.Add('Subject', 'Subject text');
DocInput.Headers.Add('Message-Id', Format('%s_%s_%s',
[Application.Title, DateTimeToStr(Now), '...@dassic.com']));
DocInput.headers.Add('Date', DateTimeToStr(Now));
DocInput.Headers.Add('Content-Type', 'text/plain;
charset=iso-8859-1');
SendDoc('', DocInput.Headers, 'Body text', '', '');
end;
Anyone who can tell what's wrong ?
I've also tried removing the Connect() line and use the property
settings instead, and I've tried adding a path with
DocInput.Headers.Add, none of it helped.
l8r/Jspr
--
Jesper Frank Nemholt Tel : +45 75 82 52 56
Pilevaenget 23 2. MF Fax : +45 75 82 52 69
DK-7100 Vejle WWW : http://dassic.com/users/jfn/
Denmark, Planet Earth... E-Mail: mailto:j...@dassic.com
He who throws mud loses ground.