phptyong 2012-01-19
代码如下:
<?php require_once('class.phpmailer.php'); require_once('class.pop3.php'); $username = getenv('username'); $password = getenv('password'); $pop = new POP3(); $auth = $pop->Authorise('your.mailserver.com', 110, 30, "$username", "$password", 1); if ($auth){ # echo OK; exit(0); } else { # echo "FAIL"; exit(255); } ?>