471,316 Members | 946 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

imap_open and NNTP

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
2 1941

"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
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.

Similar topics

2 posts views Thread by James Turnbull | last post: by
reply views Thread by Jaysheel Mehd | last post: by
reply views Thread by Dennis Biletsky | last post: by
2 posts views Thread by amiliv | last post: by
reply views Thread by oliversl | last post: by
reply views Thread by R. Pelizzi | last post: by
4 posts views Thread by qccitchy | last post: by
1 post views Thread by Eric | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.