How to setup IMAP in PHP?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rizwan6feb
    New Member
    • Jul 2007
    • 108

    How to setup IMAP in PHP?

    Hi all, i have to setup IMAP with php, not sure how to do it and where to start from? Googling doesn't give me useful links
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Originally posted by rizwan6feb
    Hi all, i have to setup IMAP with php, not sure how to do it and where to start from? Googling doesn't give me useful links
    Let us know if there's anything here



    That you don't understand or need more explanation on.

    Here's a good how to website also:

    Last edited by Atli; May 26 '08, 04:29 PM. Reason: Changed link from 'us.php.net' to just 'php.net'... works faster for the rest of us that way ;)

    Comment

    • rizwan6feb
      New Member
      • Jul 2007
      • 108

      #3
      Thanks, I am reading the second one

      Comment

      • rizwan6feb
        New Member
        • Jul 2007
        • 108

        #4
        I am stuck with the following error message
        Couldn't open stream \{imap.mail.yah oo.com/imap}INBOX

        Using the code below

        Code:
        $user = "username";
        $pass = "password";
        $server = "imap.mail.yahoo.com";
        $conn = imap_open("\{$server/imap}INBOX", $user, $pass)

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          Why do you prefix the string with a back-slash?
          I don't see that in any of the php.net examples and the article doesn't explain it (possibly a typo?).

          Try removing that.

          Comment

          • rizwan6feb
            New Member
            • Jul 2007
            • 108

            #6
            Thanks Atli
            I have come to know that both Hotmail and Yahoo don't support IMAP so i have quit using IMAP, i have been looking for some different technique. I have started a separate Thread for this

            Comment

            Working...