Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: POP Mailserver

  1. #1
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default POP Mailserver

    Ok basically im trying to retrieve my emails off the gmail server using the pop server. Any idea how the pop protocol is described??
    Heres my current script:
    PHP Code:
    <?php

    $host 
    "pop.gmail.com";
    $port "995";

    $ip gethostbyname($host);

    $socket socket_create(AF_INETSOCK_STREAMSOL_TCP);

    $result socket_connect($socket$ip$port);

    $in "HEAD / POP\r\n";
    $in .= "Host: pop.gmail.com\r\n";
    $in .= "Connection: Close\r\n\r\n";
    $out '';

    socket_write($socket$instrlen($in));

    while (
    $out socket_read($socket2048)) {
        echo 
    $out;
    }

    echo 
    "Closing socket...";
    socket_close($socket);
    echo 
    "OK.\n\n";

    ?>

  2. #2
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    No idea but good luck.
    Looking for a good desiner to design a social networking template.

    PM me.

  3. #3
    Join Date
    Dec 2006
    Posts
    521
    Tokens
    0

    Default

    Quote Originally Posted by Splinter View Post
    Ok basically im trying to retrieve my emails off the gmail server using the pop server. Any idea how the pop protocol is described??
    Heres my current script:
    PHP Code:
    <?php

    $host 
    "pop.gmail.com";
    $port "995";

    $ip gethostbyname($host);

    $socket socket_create(AF_INETSOCK_STREAMSOL_TCP);

    $result socket_connect($socket$ip$port);

    $in "HEAD / POP\r\n";
    $in .= "Host: pop.gmail.com\r\n";
    $in .= "Connection: Close\r\n\r\n";
    $out '';

    socket_write($socket$instrlen($in));

    while (
    $out socket_read($socket2048)) {
        echo 
    $out;
    }

    echo 
    "Closing socket...";
    socket_close($socket);
    echo 
    "OK.\n\n";

    ?>
    I think you need the google API, im not sure though.

Posting Permissions

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