By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,651 Members | 1,757 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,651 IT Pros & Developers. It's quick & easy.

imap_open and NNTP

P: n/a
I'm trying to use imap_open to get news from a server that requires a
user name and password.

I'm using

$nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup,
$newsuser, $newspass, OP_ANONYMOUS);

and it's failing to connect.

The PHP docs show using user/password with email but not nntp.

Am I trying to use imap_open to do something it's not able to?

--
Regards - Rodney Pont
The from address exists but is mostly dumped,
please send any emails to the address below
e-mail ngps07 (at) infohit (dot) fsnet (dot) co (dot) uk
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Rodney Pont" <sp****@infohit.fsnet.co.uk> wrote in message
news:atcfvasbuvgsfargpbhx.hso1nx1.pminews@ihs1...
I'm trying to use imap_open to get news from a server that requires a
user name and password.

I'm using

$nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup,
$newsuser, $newspass, OP_ANONYMOUS);

and it's failing to connect.


Try:

$nntp = imap_open ("{".$newsserver.":$port/nntp"."}".$newsgroup, $newsuser,
$newspass);
JW

Jul 17 '05 #2

P: n/a
On Fri, 6 Feb 2004 14:10:07 +0100, Janwillem Borleffs wrote:

"Rodney Pont" <sp****@infohit.fsnet.co.uk> wrote in message
news:atcfvasbuvgsfargpbhx.hso1nx1.pminews@ihs1. ..
I'm trying to use imap_open to get news from a server that requires a
user name and password.

I'm using

$nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup,
$newsuser, $newspass, OP_ANONYMOUS);

and it's failing to connect.


Try:

$nntp = imap_open ("{".$newsserver.":$port/nntp"."}".$newsgroup, $newsuser,
$newspass);


That's fixed it. I would never have seen that since it worked without
authentication.

Thank you very much.

--
Regards - Rodney Pont
The from address exists but is mostly dumped,
please send any emails to the address below
e-mail ngps07 (at) infohit (dot) fsnet (dot) co (dot) uk
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.