POP3::__construct() WordPress Method

The POP3::__construct() method is used to connect to a POP3 server. It takes two parameters: the host name and the port number. The host name can be either a host name or an IP address. The default port number is 110.

POP3::__construct( $server = '',  $timeout = '' ) #

PHP5 constructor.


Source

File: wp-includes/class-pop3.php

    function __construct ( $server = '', $timeout = '' ) {
        settype($this->BUFFER,"integer");
        if( !empty($server) ) {
            // Do not allow programs to alter MAILSERVER
            // if it is already specified. They can get around
            // this if they -really- want to, so don't count on it.
            if(empty($this->MAILSERVER))
                $this->MAILSERVER = $server;
        }
        if(!empty($timeout)) {
            settype($timeout,"integer");
            $this->TIMEOUT = $timeout;
            set_time_limit($timeout);
        }
        return true;
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.