<div dir="ltr">solved.<div><br></div><div><pre style="color:rgb(0,0,0)">from </pre><pre style="color:rgb(0,0,0)"><a href="https://www.w3.org/Protocols/rfc977/rfc977.html">https://www.w3.org/Protocols/rfc977/rfc977.html</a></pre><pre style="color:rgb(0,0,0)"><h2 style="font-family:"Times New Roman";white-space:normal">3.10. The POST command</h2>
...</pre><pre style="color:rgb(0,0,0)"> The text forming the header and body of the message to be posted
should be sent by the client using the conventions for text received
from the news server: A single period (".") on a line indicates the
end of the text, with lines starting with a period in the original
text having that period doubled during transmission.</pre><pre style="color:rgb(0,0,0)"><br></pre><div>This code works ok:</div><div><br></div><div>var </div><div>alist:TStringlist // initialized elsewhere</div><div><br></div><div> alist.Clear;<br> aList.Add('POST');<br> aList.Add('From: "peppepolpo" <<a href="mailto:octopushole@gmail.com">octopushole@gmail.com</a>>');<br> aList.Add('Newsgroups: it.hobby.fai-da-te');<br> aList.Add('Subject: test 201937');<br> aList.Add('Organization: None');<br> aList.Add('X-Newsreader: DIY component ');<br> { End of header is a blank line }<br> aList.Add('');<br><br> { Write the message body }<br> aList.Add('');<br> aList.Add('test 201937');<br> aList.Add('.'); // <<<<<<<<<<<<<<<<<<<<<<<<<<< this was missing!<br> a:=aclient.SendMessage(alist.Text);<br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2024 at 8:37 AM Marcus Sackrow via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 20.11.2024 um 08:34 schrieb Marcus Sackrow via lazarus:<br>
>> LineToStream('"peppepolpo" <<a href="mailto:octopushole@gmail.com" target="_blank">octopushole@gmail.com</a>>');<br>
>><br>
<br>
just noticed here is also the 'From:' missing!<br>
<br>
LineToStream('From: "peppepolpo" <<a href="mailto:octopushole@gmail.com" target="_blank">octopushole@gmail.com</a>>');<br>
<br>
-- <br>
_______________________________________________<br>
lazarus mailing list<br>
<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">https://lists.lazarus-ide.org/listinfo/lazarus</a><br>
</blockquote></div>