imap_open and NNTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rodney Pont

    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."} ".$newsgrou p,
    $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


  • Janwillem Borleffs

    #2
    Re: imap_open and NNTP


    "Rodney Pont" <spam07@infohit .fsnet.co.uk> wrote in message
    news:atcfvasbuv gsfargpbhx.hso1 nx1.pminews@ihs 1...[color=blue]
    > 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."} ".$newsgrou p,
    > $newsuser, $newspass, OP_ANONYMOUS);
    >
    > and it's failing to connect.
    >[/color]

    Try:

    $nntp = imap_open ("{".$newsserve r.":$port/nntp"."}".$news group, $newsuser,
    $newspass);


    JW



    Comment

    • Rodney Pont

      #3
      Re: imap_open and NNTP

      On Fri, 6 Feb 2004 14:10:07 +0100, Janwillem Borleffs wrote:
      [color=blue]
      >
      >"Rodney Pont" <spam07@infohit .fsnet.co.uk> wrote in message
      >news:atcfvasbu vgsfargpbhx.hso 1nx1.pminews@ih s1...[color=green]
      >> 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."} ".$newsgrou p,
      >> $newsuser, $newspass, OP_ANONYMOUS);
      >>
      >> and it's failing to connect.
      >>[/color]
      >
      >Try:
      >
      >$nntp = imap_open ("{".$newsserve r.":$port/nntp"."}".$news group, $newsuser,
      >$newspass);[/color]

      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


      Comment

      Working...