From 30238f5847b418645983a4efddb13f087c99e585 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 30 Jun 2018 10:01:33 +0200 Subject: Premiers tests 2007-01-02+20:01:04 - 2007-02-02+16:43:14 --- test/pop3.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/pop3.txt (limited to 'test/pop3.txt') 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 ") { -- cgit v1.2.3