mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
11 lines
364 B
PHP
11 lines
364 B
PHP
<?php
|
|
include __DIR__ . '/imap_include.inc';
|
|
|
|
$options = OP_HALFOPEN; // this should be enough to verify server present
|
|
$retries = 0; // don't retry connect on failure
|
|
|
|
$mbox = @imap_open(IMAP_SERVER, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, $options, $retries);
|
|
if (!$mbox) {
|
|
die("skip could not connect to mailbox " . IMAP_SERVER);
|
|
}
|
|
imap_close($mbox);
|