mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Save attachments as ...
This commit is contained in:
parent
f5f067f1f3
commit
48b91fb957
20 changed files with 687 additions and 76 deletions
19
build/test.php
Normal file
19
build/test.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
// simple connection test
|
||||
|
||||
$host = 'imap.gmail.com';
|
||||
$port = 993;
|
||||
|
||||
echo $host.':'.$port;
|
||||
|
||||
$errorStr = '';
|
||||
$errorNo = 0;
|
||||
|
||||
$connection = stream_socket_client($host.':'.$port, $errorNo, $errorStr, 5, STREAM_CLIENT_CONNECT);
|
||||
if (is_resource($connection)) {
|
||||
echo ' = OK';
|
||||
fclose($connection);
|
||||
} else {
|
||||
echo ' = ERROR ([#'.$errorNo.'] '.$errorStr.')';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue