summaryrefslogtreecommitdiff
path: root/test/pop3.txt
blob: 089e8687ff30490507e50aaf3d1dcb5e626269b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
    $connexion = @fsockopen($server, 110, $errno, $errstr, 10);
    if($connexion) {
       $output = fgets($connexion, 128);
       fputs($connexion, "user $user\n");
       $output = fgets($connexion, 128);
       $upw = "" . $_REQUEST['user_pw'] ;
       fputs($connexion, "pass $upw\n");
       $output = fgets($connexion, 128);
       $subout = substr($output, 0, 4);
       fputs($connexion, "quit\n");
       fclose($connexion);
       if ($subout == "+OK ") {