IMAP server wrapper providing authentication and connection handling.
// Source: https://github.com/ddeboer/imap | License: MIT | Copyright 2013 David de Boer <david@ddeboer.nl>
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Ddeboer\Imap;
use Ddeboer\Imap\Exception\AuthenticationFailedException;
use Ddeboer\Imap\Exception\ResourceCheckFailureException;
/**
* An IMAP server.
*/
final class Server implements ServerInterface
{
private string $hostname;
private string $port;
private string $flags;
/**
* @var mixed[]
*/
private array $parameters;
private int $options;
private int $retries;
/**
* Constructor.
*
* @param string $hostname Internet domain name or bracketed IP address
* of server
* @param st
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key