Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on accessing pop3 accounts using imap_open in the Shared & Semi-Dedicated forum
Anyone have any experience using imap_open to access pop3 accounts? I want to create a webmail utility so that my user's can access their email. ...

  1. #1
    JPC Member
    Join Date
    Oct 2003
    Posts
    2

    accessing pop3 accounts using imap_open

    Anyone have any experience using imap_open to access pop3 accounts?

    I want to create a webmail utility so that my user's can access their email. I create a pop3 account for them using the Control Panel, then they can log in and check their mail.

    I am hung up on the username and password.

    For example, in Control Panel I created a mail account called webmaster with some password.

    To connect to the mailbox:

    $inbox = @imap_open("{" . "mail.mydomain.com" . ":110/pop3}INBOX", $username, $passwd);

    The error I get is
    [0]: Username/Password Mismatch...
    [1]: POP3 connection broken in response.

    However, if for the username and password I use the username and password that I use to access Control Panel (the ones associated with my account) then it logs in just fine, however then I can't check for email for a specific user (such as webmaster, or admin, or abuse, etc).

    Any suggestions?

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Use the full email address as the username for anything other than the default account.

    Also, JPC supports IMAP now, too, so if you are using the PHP IMAP functions, you might want to give your users full IMAP support (such as acess to folders). Of course that means more proramming, but its a suggestion, possibly a for future idea.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Oct 2003
    Posts
    2
    Jason,

    You rock. Thanks for the help. The mail script I was using was specifically disallowing usernames with "@", so where I thought the error was coming from imap_open, the script was not even calling it.

    I stripped out the fluff and used the full username (with @domain.com) and it worked perfectly.

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •