003
10.11.2004, 16:04 Uhr
FloSoft
Medialer Over-Flow (Administrator)
|
hmm mal schaun, etwa so:
PHP 4: |
<?php
$mailserver = "www.example.com" $user = "benutzer@example.com" $pass = "*****";
$fp = fsockopen($mailserver, 110, &$errno, &$errstr, 30); if (!$fp) { echo "$errstr ($errno)"; } else { $recv = fgets($fp,128); if(substr($recv,0,3) == "+OK") { fputs($fp,"USER {$user}\r\n"); $recv = fgets($fp,128); if(substr($recv,0,3) == "+OK") { fputs($fp,"PASS {$pass}\r\n"); $recv = fgets($fp,128); if(substr($recv,0,3) == "+OK") { fputs($fp,"STAT\r\n"); $recv = fgets($fp,128); if(preg_match("/+OK (.*) (.*)/",$recv,$mails) { print_r($mails); } } } } fclose($fp); } ?>
|
-- class God : public ChuckNorris { }; |