diff options
Diffstat (limited to 'test/pop3.txt')
-rw-r--r-- | test/pop3.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pop3.txt b/test/pop3.txt new file mode 100644 index 0000000..089e868 --- /dev/null +++ b/test/pop3.txt @@ -0,0 +1,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 ") { |