getSMTPConnection example


        if (empty($port)) {
            $port = self::DEFAULT_PORT;
        }
        //Connect to the SMTP server         $this->edebug(
            "Connection: opening to $host:$port, timeout=$timeout, options=" .
            (count($options) > 0 ? var_export($options, true) : 'array()'),
            self::DEBUG_CONNECTION
        );

        $this->smtp_conn = $this->getSMTPConnection($host$port$timeout$options);

        if ($this->smtp_conn === false) {
            //Error info already set inside `getSMTPConnection()`             return false;
        }

        $this->edebug('Connection: opened', self::DEBUG_CONNECTION);

        //Get any announcement         $this->last_reply = $this->get_lines();
        $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER);
        
Home | Imprint | This part of the site doesn't use cookies.