Hi there,

I am trying to write a script which is posting news to a newsserver.
Unfortunatelly I do get a 535 error back which is not reported in:
http://www.faqs.org/rfcs/rfc977.html Section 3.10.2

Maybe someone of you guys has a clue of an idea what is going wrong.
connecting works, so I did not include the connect code. The code for
posting is underneath.

Thanx for any help on that.


$cfgServer    = "news.php.net";
$cfgNewsGroup    = "php.general";
     Newsgroups: '.$cfgNewsGroup.'
     Path: '.$cfgServer.'
     Relay-Version: version B 2.10 2/13/83; site cbosgd.UUCP
     Posting-Version: version B 2.10 2/13/83; site eagle.UUCP
     From: [EMAIL PROTECTED] (Jerry Schwarz)
     Subject: '.$subject.'
     Message-ID: <[EMAIL PROTECTED]>
     Date: Friday, 10-Aug-2002 16:14:55 EST
     Followup-To: '.$cfgNewsGroup.'
     Expires: Saturday, 1-Jan-2003 00:00:00 EST
     Date-Received: Friday, 10-Aug-2002 16:59:30 EST
     Organization: Bell Labs, Murray Hill

This is a test.


$put = fputs($usenet_handle, "POST $message\n");

echo $put;

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to