Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I am trying to create a perl function that posts to newsgroups.  I have an
account with newsguy and I'm trying to connect through their server using
Net:NNTP.  I believe I've made the connection but I'm not quite sure.  So
I'm not sure if my message isn't in the correct format or if I don't have
the perl code right.  I did get a response of '1' when I asked a simple
post_ok, so I think that a connection has been made.  And I've double
checked my message and should have all the required fields in the correct
format.  Does anyone have any suggestions?

Here's the basic code:

use NET::NNTP;
my $nntp = Net::NNTP->new($newshost);
$nntp->authinfo($settings, $settings);
my $ok = $nntp->postok();

$ok returns 1.


Site Timeline