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.6 2006/02/28 02:19:22 aashley Exp $
require_once 'Auth/Container.php';
require_once 'Net/POP3.php';
* Storage driver for Authentication on a POP3 server.
* @author Yavor Shahpasov <yavo@netsmart.com.cy>
* @version $Revision: 1.6 $
* POP3 Authentication method
* Prefered POP3 authentication method. Acceptable values:
* Boolean TRUE - Use Net_POP3's autodetection
* String 'DIGEST-MD5','CRAM-MD5','LOGIN','PLAIN','APOP','USER'
* - Attempt this authentication style first
* then fallback to autodetection.
// {{{ Auth_Container_POP3() [constructor]
* 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'];
if (isset ($server['method'])) {
$this->method = $server['method'];
$this->server = $serverparts[0 ];
$this->port = $serverparts[1 ];
* Try to login to the POP3 server
$result = $pop3->login ($username, $password);
Documentation generated on Mon, 11 Mar 2019 14:37:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|