Source for file POP3.php
Documentation is available at POP3.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Stefan Ekman <stekman@sedata.org> |
// | Martin Jansen <mj@php.net> |
// | Mika Tuupola <tuupola@appelsiini.net> |
// +----------------------------------------------------------------------+
// $Id: POP3.php,v 1.4 2004/03/28 23:19:50 yavo Exp $
require_once('Auth/Container.php');
require_once('PEAR.php');
require_once('Net/POP3.php');
* Storage driver for Authentication on a POP3 server.
* @author Yavor Shahpasov <yavo@netsmart.com.cy>
* @version $Revision: 1.4 $
* Constructor of the container class
* @param $server string server or server:port combination
* @return object Returns an error object if something went wrong
if (isset ($server['host'])) {
$this->server = $server['host'];
if (isset ($server['port'])) {
$this->port = $server['port'];
$this->server = $serverparts[0 ];
$this->port = $serverparts[1 ];
* Try to login to the POP3 server
$res = $pop3->connect ($this->server, $this->port);
$result = $pop3->login ($username, $password);
Documentation generated on Mon, 11 Mar 2019 13:52:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|