mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
58 lines
1.2 KiB
PHP
58 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @package TBD
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Message\Mail;
|
|
|
|
/**
|
|
* Imap mail class.
|
|
*
|
|
* @package Framework
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
class Pop3 extends EmailAbstract
|
|
{
|
|
/**
|
|
* Construct
|
|
*
|
|
* @param string $host Host
|
|
* @param int $port Host port
|
|
* @param int $timeout Timeout
|
|
* @param bool $ssl Use ssl
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct(string $host = 'localhost', int $port = 25, int $timeout = 30, bool $ssl = false)
|
|
{
|
|
parent::__construct($host, $port, $timeout, $ssl);
|
|
}
|
|
|
|
/**
|
|
* Connect to server
|
|
*
|
|
* @param string $user Username
|
|
* @param string $pass Password
|
|
*
|
|
* @return void
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function connect(string $user = '', string $pass = '') : void
|
|
{
|
|
$this->mailbox = '{' . $this->host . ':' . $this->port . '/pop3}';
|
|
parent::connect();
|
|
}
|
|
}
|